From: Andreas Schneider Date: Tue, 20 Nov 2018 11:09:31 +0000 (+0100) Subject: wafsamba: Do not always set _FORTIFY_SOURCE=2 X-Git-Tag: tdb-1.3.17~573 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bebab0760905f7251a1bf22ad88741043d642901;p=thirdparty%2Fsamba.git wafsamba: Do not always set _FORTIFY_SOURCE=2 This requires to be compiled with optimization (-O). Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 5f203fc7d36..58800d24351 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -703,7 +703,7 @@ def SAMBA_CONFIG_H(conf, path=None): mandatory=False, msg='Checking if compiler accepts %s' % (stack_protect_flag)) if flag_supported: - conf.ADD_CFLAGS('-Wp,-D_FORTIFY_SOURCE=2 %s' % (stack_protect_flag)) + conf.ADD_CFLAGS('%s' % (stack_protect_flag)) break flag_supported = conf.check(fragment='''