diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-20 12:09:31 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-28 23:19:21 +0100 |
commit | bebab0760905f7251a1bf22ad88741043d642901 (patch) | |
tree | 457fa83f7de5346cd62abfb29cae3dd672f32b71 /buildtools | |
parent | 9f28d8e89637b870d788e5259539d8e8bec74bd5 (diff) | |
download | samba-bebab0760905f7251a1bf22ad88741043d642901.tar.gz |
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>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 2 |
1 files changed, 1 insertions, 1 deletions
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=''' |