]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: Do not always set _FORTIFY_SOURCE=2
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 11:09:31 +0000 (12:09 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:21 +0000 (23:19 +0100)
This requires to be compiled with optimization (-O).

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
buildtools/wafsamba/samba_autoconf.py

index 5f203fc7d36adcc6985787d3b84b085a7ae66af3..58800d243512fac59425e1bca0d3b24fe5f8631e 100644 (file)
@@ -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='''