diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-20 15:05:14 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-20 15:05:35 -0700 |
commit | 9350c3288150d75a5b5d4ca98cab18d338b8a00f (patch) | |
tree | c25a77968867137ca74dd12af0fc38c68cb2f327 /configure.ac | |
parent | f4d35857d2df9067e0c9f96c774ffa4c8836bffa (diff) | |
download | grep-9350c3288150d75a5b5d4ca98cab18d338b8a00f.tar.gz |
build: port to platforms that predefine _FORTIFY_SOURCE
Problem reported by Brenton Hoff (Bug#15663).
* configure.ac (_FORTIFY_SOURCE): Don't define if already defined.
This is what Emacs does.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5c93d04e..6ce72374 100644 --- a/configure.ac +++ b/configure.ac @@ -159,7 +159,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 ]) |