mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
9f28d8e896
commit
bebab07609
@ -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='''
|
||||
|
Loading…
Reference in New Issue
Block a user