aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-04 14:12:58 -0400
committerMike Frysinger <vapier@gentoo.org>2014-02-08 09:20:54 -0500
commit0371345ce892d174f344d0f912419f4a5b3c8954 (patch)
treed0b5d254c668459f3b07d4d84d55825d2621df44 /include
parentworkaround crash when handling signals in static PIEs (diff)
downloadglibc-0371345ce892d174f344d0f912419f4a5b3c8954.tar.gz
glibc-0371345ce892d174f344d0f912419f4a5b3c8954.tar.bz2
glibc-0371345ce892d174f344d0f912419f4a5b3c8954.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/features.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/features.h b/include/features.h
index 21173a28c3..46638cac1c 100644
--- a/include/features.h
+++ b/include/features.h
@@ -336,10 +336,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