summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-05 15:55:25 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-05 10:37:30 +0200
commitfe8fe384f35fcf827630061ceda553ae8867f4ad (patch)
treeb5240ff35ba2abcf87cd61e2817e4a6f77f117d6 /lib
parent8420a36dc7fe72fb665e065b8673fa44ff1bbf21 (diff)
downloadsamba-fe8fe384f35fcf827630061ceda553ae8867f4ad.tar.gz
samba-fe8fe384f35fcf827630061ceda553ae8867f4ad.tar.bz2
samba-fe8fe384f35fcf827630061ceda553ae8867f4ad.zip
ldb: set -Wl,-no-undefined only on standalone build
This ensures that the flag is not propogated to other projects, such as Samba's source3 waf build. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jul 5 10:37:30 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ldb/wscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
index f184554665..a8d9bf70ca 100755
--- a/lib/ldb/wscript
+++ b/lib/ldb/wscript
@@ -66,12 +66,12 @@ def configure(conf):
if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
conf.env.ENABLE_LDAP_BACKEND = True
- conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
+ # we don't want any libraries or modules to rely on runtime
+ # resolution of symbols
+ if sys.platform != "openbsd4":
+ conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
- # we don't want any libraries or modules to rely on runtime
- # resolution of symbols
- if sys.platform != "openbsd4":
- conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+ conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
conf.SAMBA_CONFIG_H()