From: Christof Schmitt Date: Thu, 7 Dec 2017 17:42:30 +0000 (-0700) Subject: wscript: Add check for --wrap linker flag X-Git-Tag: talloc-2.1.11~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e17be1c3df09c238560c8a7e62c17e9f9ff9bc7;p=thirdparty%2Fsamba.git wscript: Add check for --wrap linker flag BUG: https://bugzilla.samba.org/show_bug.cgi?id=13170 Signed-off-by: Christof Schmitt Reviewed-by: Andreas Schneider --- 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)