[master] a5ec345 Set -D_FORTIFY_SOURCE=0 since RHEL has too old gcc for -Wno-error=warn_unused_result
Tollef Fog Heen
tfheen at varnish-software.com
Fri Nov 29 13:56:20 CET 2013
commit a5ec34570e93cc523ec63332c8dd48bea6c2f600
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date: Fri Nov 29 13:55:36 2013 +0100
Set -D_FORTIFY_SOURCE=0 since RHEL has too old gcc for -Wno-error=warn_unused_result
diff --git a/redhat/varnish.spec b/redhat/varnish.spec
index e12da5a..194340b 100644
--- a/redhat/varnish.spec
+++ b/redhat/varnish.spec
@@ -96,6 +96,8 @@ cp bin/varnishd/default.vcl etc/zope-plone.vcl examples
export PCRE_LIBS="`pcre-config --libs`"
%endif
+export CFLAGS="$CFLAGS -Wp,-D_FORTIFY_SOURCE=0"
+
# Remove "--disable static" if you want to build static libraries
# jemalloc is not compatible with Red Hat's ppc64 RHEL kernel :-(
%ifarch ppc64 ppc
More information about the varnish-commit
mailing list