summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2017-12-07 10:42:30 -0700
committerChristof Schmitt <cs@samba.org>2017-12-08 09:43:12 +0100
commit8e17be1c3df09c238560c8a7e62c17e9f9ff9bc7 (patch)
tree6c77a8be958af2153d525940feda8e13e043a19c /wscript
parent065fb5d94d25d19fc85832bb85aa9e379e8551cc (diff)
downloadsamba-8e17be1c3df09c238560c8a7e62c17e9f9ff9bc7.tar.gz
wscript: Add check for --wrap linker flag
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13170 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index b1671022be1..0ef5f6050a3 100644
--- a/wscript
+++ b/wscript
@@ -183,6 +183,10 @@ def configure(conf):
conf.RECURSE('lib/ldb')
+ if conf.CHECK_LDFLAGS(['-Wl,--wrap=test']):
+ conf.env['HAVE_LDWRAP'] = True
+ conf.define('HAVE_LDWRAP', 1)
+
if not (Options.options.without_ad_dc):
conf.DEFINE('AD_DC_BUILD_IS_ENABLED', 1)