1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

wafsamba: Do not always set _FORTIFY_SOURCE=2

This requires to be compiled with optimization (-O).

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2018-11-20 12:09:31 +01:00 committed by Gary Lockyer
parent 9f28d8e896
commit bebab07609

View File

@ -703,7 +703,7 @@ def SAMBA_CONFIG_H(conf, path=None):
mandatory=False, mandatory=False,
msg='Checking if compiler accepts %s' % (stack_protect_flag)) msg='Checking if compiler accepts %s' % (stack_protect_flag))
if flag_supported: if flag_supported:
conf.ADD_CFLAGS('-Wp,-D_FORTIFY_SOURCE=2 %s' % (stack_protect_flag)) conf.ADD_CFLAGS('%s' % (stack_protect_flag))
break break
flag_supported = conf.check(fragment=''' flag_supported = conf.check(fragment='''