mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r26633] Add -D_DEFAULT_SOURCE to CPPFLAGS on Linux systems. -D_BSD_SOURCE is deprecated
in recent versions of glibc, and -D_DEFAULT_SOURCE is the replacement. Keep -D_BSD_SOURCE for now to support older systems. gcc will not issue a warning about -D_BSD_SOURCE being deprecated when -D_DEFAULT_SOURCE is supplied as well. Tested: jam, koala, ostrich (h5committest)
This commit is contained in:
parent
50d7a32330
commit
1756ca5c13
5
configure
vendored
5
configure
vendored
@ -22929,6 +22929,11 @@ case "$host_cpu-$host_vendor-$host_os" in
|
||||
## however, we do not do this since it breaks the big test on some
|
||||
## older platforms.
|
||||
H5_CPPFLAGS="-D_BSD_SOURCE $H5_CPPFLAGS"
|
||||
|
||||
## _BSD_SOURCE is deprecated as of glibc 2.20, in favor of _DEFAULT_SOURCE.
|
||||
## To avoid warnings, we define _DEFAULT_SOURCE in addition to _BSD_SOURCE,
|
||||
## which should work for all versions of glibc.
|
||||
H5_CPPFLAGS="-D_DEFAULT_SOURCE $H5_CPPFLAGS"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -1120,6 +1120,11 @@ case "$host_cpu-$host_vendor-$host_os" in
|
||||
## however, we do not do this since it breaks the big test on some
|
||||
## older platforms.
|
||||
H5_CPPFLAGS="-D_BSD_SOURCE $H5_CPPFLAGS"
|
||||
|
||||
## _BSD_SOURCE is deprecated as of glibc 2.20, in favor of _DEFAULT_SOURCE.
|
||||
## To avoid warnings, we define _DEFAULT_SOURCE in addition to _BSD_SOURCE,
|
||||
## which should work for all versions of glibc.
|
||||
H5_CPPFLAGS="-D_DEFAULT_SOURCE $H5_CPPFLAGS"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user