mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
wafsamba: Also build libraries with RELRO protection
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11346 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jun 19 12:51:48 CEST 2015 on sn-devel-104
This commit is contained in:
parent
052b9a53b7
commit
893b5f8144
@ -242,6 +242,8 @@ def SAMBA_LIBRARY(bld, libname, source,
|
||||
bundled_extension, private_library)
|
||||
|
||||
ldflags = TO_LIST(ldflags)
|
||||
if bld.env['ENABLE_RELRO'] is True:
|
||||
ldflags.extend(TO_LIST('-Wl,-z,relro,-z,now'))
|
||||
|
||||
features = 'cc cshlib symlink_lib install_lib'
|
||||
if pyext:
|
||||
|
Loading…
Reference in New Issue
Block a user