From aae529f0273eae9c5ffce301ce46054c557d2613 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Sun, 8 Mar 2015 21:11:17 -0500 Subject: [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 --- configure | 6 +++--- configure.ac | 4 ++-- release_docs/RELEASE.txt | 8 ++++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 9c01aa9..4ed2f81 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Id: configure.ac 26358 2015-03-04 18:15:04Z lrknox . +# From configure.ac Id: configure.ac 26391 2015-03-08 23:36:10Z hdftest . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for HDF5 1.8.15-snap12. # @@ -23121,7 +23121,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 defines ## __USE_BSD, which is required to get the prototype for strdup @@ -23131,7 +23131,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 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 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 diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index dc989ba..324dc57 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -132,6 +132,14 @@ New Features (DER - 2015-02-26, HDFFV-9057, 7567, 9088, 7566) + - _POSIX_C_SOURCE, _GNU_SOURCE, and _BSD_SOURCE no longer exported to + h5cc and other compiler wrappers. + + These definitions are not required for using API functions and may + conflict with user code requirements. + + (DER - 2015-03-08, HDFFV-9152) + Library ------- - None -- cgit v0.12