From 10ef4e9a9725d5686a792d3bbe98ef06cf7a2558 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 21 Feb 2004 12:44:05 -0500 Subject: [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 --- c++/config/freebsd | 20 ++++++++++++++++++++ config/freebsd | 4 +--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 c++/config/freebsd 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 -- cgit v0.12