summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rw-r--r--c++/config/freebsd20
1 files changed, 20 insertions, 0 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