diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-10-23 15:20:07 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2012-10-24 18:03:36 +0200 |
commit | 9517680ed3d4d7baff8a842a052ad405f9e9049f (patch) | |
tree | 9845431eb169c256ffe40a3706ddf6e3bfd5a179 | |
parent | 7ab9b4e44352b6c76bea25cec9de53501a8f2e7f (diff) | |
download | coreutils-9517680ed3d4d7baff8a842a052ad405f9e9049f.tar.xz |
build: do not redefine _FORTIFY_SOURCE
When _FORTIFY_SOURCE is defined by the compiler or via flags, as
it is on Gentoo, do not override it. Otherwise we get many
redefinition warnings.
* configure.ac (FORTIFY_SOURCE): Check if _FORTIFY_SOURCE is defined.
This addresses http://bugs.gnu.org/12714
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e5e05be5c..6504144ee 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ if test "$gl_gcc_warnings" = yes; then AH_VERBATIM([FORTIFY_SOURCE], [/* Enable compile-time and run-time bounds-checking, and some warnings, without upsetting glibc 2.15+. */ - #if defined __OPTIMIZE__ && __OPTIMIZE__ + #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__ # define _FORTIFY_SOURCE 2 #endif ]) |