Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Remove _FORTIFY_SOURCE
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Oct 2012 01:42:38 +0000 (21:42 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Oct 2012 01:42:38 +0000 (21:42 -0400)
Apparently, on some glibc versions this causes warnings when
optimization is not enabled.

Altogether, there appear to be too many incompatibilities surrounding
this.

src/template/linux

index fd509d98ca45673e2995ec1ae992278532a7be60..3eb5ad2428fdefcbd41c5dda6fa87c708a3abcf1 100644 (file)
@@ -3,12 +3,6 @@
 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 
-# Many distributors use this, so we might as well see the warnings as
-# well.  ICC doesn't work when this is enabled.
-if test "$ICC" != "yes"; then
-  CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
-fi
-
 # If --enable-profiling is specified, we need -DLINUX_PROFILE
 PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"