summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-02-21 17:44:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-02-21 17:44:05 (GMT)
commit10ef4e9a9725d5686a792d3bbe98ef06cf7a2558 (patch)
tree7a5910ec30933e5d25dc73dc06488da054c0915f /c++
parentc23d11475e0eac5c0bc10f7ed075f8c62c9072ea (diff)
downloadhdf5-10ef4e9a9725d5686a792d3bbe98ef06cf7a2558.zip
hdf5-10ef4e9a9725d5686a792d3bbe98ef06cf7a2558.tar.gz
hdf5-10ef4e9a9725d5686a792d3bbe98ef06cf7a2558.tar.bz2
[svn-r8213] Purpose:
Bug fix Description: Update threadsafe flags for FreeBSD and allow C++ to be built with threadsafe enabled. Platforms tested: FreeBSD 4.9 (sleipnir) w/C++ & thread-safe
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