summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-05-23 20:39:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-05-23 20:39:54 (GMT)
commit7a9cd4ac49449056451ffeb830784508c78429d7 (patch)
treee342bfcf08c82e64d0480bfcbc878d22b67fe743 /config
parent5e6b5f30cf97db2f28581bd0806f13cea6e80c06 (diff)
downloadhdf5-7a9cd4ac49449056451ffeb830784508c78429d7.zip
hdf5-7a9cd4ac49449056451ffeb830784508c78429d7.tar.gz
hdf5-7a9cd4ac49449056451ffeb830784508c78429d7.tar.bz2
[svn-r10787] Purpose:
Bug fix Description: Accommodate the GNU C++ compiler. Platforms tested: FreeBSD 4.11 (sleipnir) w/CC=g++ Not tested by h5committest
Diffstat (limited to 'config')
-rw-r--r--config/freebsd5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/freebsd b/config/freebsd
index e07054e..826e09c 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -13,7 +13,10 @@ fi
# Add "_XOPEN_SOURCE" define to cpp flags, to quiet warnings
# from /usr/include/sys/cdefs.h
-CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
+# (Unless we are using g++ as a C compiler)
+if test "X-g++" != "X-$CC"; then
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
+fi
# Figure out C compiler flags
. $srcdir/config/gnu-flags