diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-03-09 02:11:17 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-03-09 02:11:17 (GMT) |
commit | aae529f0273eae9c5ffce301ce46054c557d2613 (patch) | |
tree | 958f6ebcd488f56cf11b69fe428b83ae4d4c9fee /configure.ac | |
parent | 6cddc62b70e64153e791f0ee99b952ce0799b74d (diff) | |
download | hdf5-aae529f0273eae9c5ffce301ce46054c557d2613.zip hdf5-aae529f0273eae9c5ffce301ce46054c557d2613.tar.gz hdf5-aae529f0273eae9c5ffce301ce46054c557d2613.tar.bz2 |
[svn-r26393] Merges r26347 and r26363 from trunk
Moves the _POSIX_C_SOURCE, _GNU_SOURCE, and _BSD_SOURCE from AM_CPPFLAGS
to H5_CPPFLAGS in the Autotools configure scripts. This prevents them
from being exported to h5cc, etc. which is inappropriate since they
may interfere with other code.
Fixes: HDFFV-9152
Tested on: h5committest
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 6856583..d3b244f 100644 --- a/configure.ac +++ b/configure.ac @@ -1131,7 +1131,7 @@ case "$host_cpu-$host_vendor-$host_os" in ## Need to add this so that O_DIRECT is visible for the direct ## VFD on Linux systems. - AM_CPPFLAGS="-D_GNU_SOURCE $AM_CPPFLAGS" + H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS" ## Also add BSD support on Linux systems, so <features.h> defines ## __USE_BSD, which is required to get the prototype for strdup @@ -1141,7 +1141,7 @@ case "$host_cpu-$host_vendor-$host_os" in ## http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html ## however, we do not do this since it breaks the big test on some ## older platforms. - AM_CPPFLAGS="-D_BSD_SOURCE $AM_CPPFLAGS" + H5_CPPFLAGS="-D_BSD_SOURCE $H5_CPPFLAGS" ;; esac |