summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-28 17:24:05 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:13 +1000
commitab1b0965380e927faa39ce4bf7f7de14e2d29afc (patch)
treeaa3143f5349dd1fe0140193eb26689f155535c90 /buildtools/wafsamba/wscript
parent28a734829485f74ecff7fa922059c716893bbdc8 (diff)
downloadsamba-ab1b0965380e927faa39ce4bf7f7de14e2d29afc.tar.gz
samba-ab1b0965380e927faa39ce4bf7f7de14e2d29afc.tar.bz2
samba-ab1b0965380e927faa39ce4bf7f7de14e2d29afc.zip
build: auto-detect platforms which don't support shared libs
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 5a24eeb283..b2a11064fe 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -109,8 +109,12 @@ def configure(conf):
headers='stdio.h',
msg='Checking simple C program')
+ # see if we can build shared libs
+ if not conf.CHECK_LIBRARY_SUPPORT():
+ conf.env.DISABLE_SHARED = True
+
# check for rpath
- if not conf.env.DISABLE_SHARED and conf.CHECK_RPATH_SUPPORT():
+ if not conf.env.DISABLE_SHARED and conf.CHECK_LIBRARY_SUPPORT(rpath=True):
conf.env.RPATH_ON_BUILD = not Options.options.disable_rpath_build
conf.env.RPATH_ON_INSTALL = (conf.env.RPATH_ON_BUILD and
not Options.options.disable_rpath_install)