Disable _FORTIFY_SOURCE with ICC
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 30 Sep 2012 00:06:37 +0000 (20:06 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 30 Sep 2012 00:07:36 +0000 (20:07 -0400)
There are apparently some incompatibilities, per buildfarm.

src/template/linux

index b3ad4fabba2a4dbf68b9fd810efb8bcab1df26f0..fd509d98ca45673e2995ec1ae992278532a7be60 100644 (file)
@@ -3,8 +3,11 @@
 # 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.
-CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
+# 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"