diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-04 14:12:58 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-08-16 15:13:12 -0400 |
commit | 630f1e84ebb2574b480d9637bfd8e25d4507e5ec (patch) | |
tree | 2e0d6ccaa68c7f3fe95efa621ff167d0f57c99d1 | |
parent | b1ef729251fec30082c58d69fcc7d482d7ced7db (diff) | |
download | glibc-630f1e84ebb2574b480d9637bfd8e25d4507e5ec.zip glibc-630f1e84ebb2574b480d9637bfd8e25d4507e5ec.tar.gz glibc-630f1e84ebb2574b480d9637bfd8e25d4507e5ec.tar.bz2 |
make fortify logic checks less angry
the fortify/optimization check does not play well with our default gcc specs
http://sourceware.org/ml/libc-alpha/2012-06/msg00068.html
-rw-r--r-- | include/features.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/features.h b/include/features.h index c9be10a..476aa13 100644 --- a/include/features.h +++ b/include/features.h @@ -322,10 +322,11 @@ # define __USE_REENTRANT 1 #endif +#if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0 +# undef _FORTIFY_SOURCE +#endif #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 -# if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0 -# warning _FORTIFY_SOURCE requires compiling with optimization (-O) -# elif !__GNUC_PREREQ (4, 1) +# if !__GNUC_PREREQ (4, 1) # warning _FORTIFY_SOURCE requires GCC 4.1 or later # elif _FORTIFY_SOURCE > 1 # define __USE_FORTIFY_LEVEL 2 |