summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-03-09 02:11:17 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-03-09 02:11:17 (GMT)
commitaae529f0273eae9c5ffce301ce46054c557d2613 (patch)
tree958f6ebcd488f56cf11b69fe428b83ae4d4c9fee
parent6cddc62b70e64153e791f0ee99b952ce0799b74d (diff)
downloadhdf5-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
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac4
-rw-r--r--release_docs/RELEASE.txt8
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 <features.h> 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 <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
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