diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-23 20:40:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-23 20:40:01 (GMT) |
commit | 9a8a2d61866fdc495d2a8bb805fc1efab53fe7d0 (patch) | |
tree | 5a00e73626ae20c02223e18078e10dfbaf94694c /config | |
parent | 2acb779506d0a2bec1b7672d96049a9572ecdab1 (diff) | |
download | hdf5-9a8a2d61866fdc495d2a8bb805fc1efab53fe7d0.zip hdf5-9a8a2d61866fdc495d2a8bb805fc1efab53fe7d0.tar.gz hdf5-9a8a2d61866fdc495d2a8bb805fc1efab53fe7d0.tar.bz2 |
[svn-r10788] 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/freebsd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/freebsd b/config/freebsd index 911a9aa..27fb868 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 |