summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-06-19 09:28:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-06-19 12:51:48 +0200
commit893b5f81441bbc98ef403855ec8e2e39569479d2 (patch)
tree12febc119773c9d0da48a71bd415c8bb5dbfc493 /buildtools
parent052b9a53b76d7a3a282387aafca31c5ce843d07a (diff)
downloadsamba-893b5f81441bbc98ef403855ec8e2e39569479d2.tar.gz
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
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 64382da4e43..c27241eff8d 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -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: