waf: Build with RELRO if supported by the compiler.
authorAndreas Schneider <asn@samba.org>
Fri, 5 Jul 2013 06:13:56 +0000 (08:13 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 9 Jul 2013 20:00:37 +0000 (13:00 -0700)
commit191e6b9441d6789ecc16a3a80eb36ec5b410c083
treed0c98fb7f4bf4a7c032861c5089c3371a5f37e27
parentaef8aad638b916026651d900b91e963897b31c1a
waf: Build with RELRO if supported by the compiler.

Make sure we create binaries with full RELocation Read-Only support. See
https://isisblogs.poly.edu/2011/06/01/relro-relocation-read-only/
for more details.

The default is to check if the compiler supports RELRO and then enable
it. Specifying '--with-relro' will make it mandatory and
'--without-relro' will disable it.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/wafsamba.py
wscript