From bebab0760905f7251a1bf22ad88741043d642901 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Nov 2018 12:09:31 +0100 Subject: [PATCH] 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 --- buildtools/wafsamba/samba_autoconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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='''