summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c++/config/freebsd20
-rw-r--r--config/freebsd4
2 files changed, 21 insertions, 3 deletions
diff --git a/c++/config/freebsd b/c++/config/freebsd
new file mode 100644
index 0000000..44e981f
--- /dev/null
+++ b/c++/config/freebsd
@@ -0,0 +1,20 @@
+# -*- shell-script -*-
+#
+# This file is part of the HDF5 build script. It is processed shortly
+# after configure starts and defines, among other things, flags for
+# the various compile modes.
+
+
+#----------------------------------------------------------------------------
+# Compiler flags. The CPPFLAGS values should not include package debug
+# flags like `-DH5G_DEBUG' since these are added with the
+# `--enable-debug' switch of configure.
+#----------------------------------------------------------------------------
+
+# Special setup to use pthread support if enable-threadsafe is on.
+# Works with static executable only.
+if test "X-" != "X-$enable_threadsafe"; then
+ CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE"
+ LDFLAGS="$LDFLAGS -pthread"
+# enable_static_exec=yes
+fi
diff --git a/config/freebsd b/config/freebsd
index f35aa5b..44c098d 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -27,8 +27,6 @@ NOFP=${NOFP:=-fomit-frame-pointer}
# Special setup to use pthread support if enable-threadsafe is on.
# Works with static executable only.
if test "X-" != "X-$enable_threadsafe"; then
- CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
+ CFLAGS="$CFLAGS -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
- LIBS="$LIBS -lcipher"
- enable_static_exec=yes
fi