From: Peter Eisentraut Date: Sun, 30 Sep 2012 00:06:37 +0000 (-0400) Subject: Disable _FORTIFY_SOURCE with ICC X-Git-Tag: REL9_3_BETA1~865 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97ec9621572054be96b0447395f5fa2438a4d6cb;p=thirdparty%2Fpostgresql.git Disable _FORTIFY_SOURCE with ICC There are apparently some incompatibilities, per buildfarm. --- diff --git a/src/template/linux b/src/template/linux index b3ad4fabba2..fd509d98ca4 100644 --- a/src/template/linux +++ b/src/template/linux @@ -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"