summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-20 23:41:15 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:58 +1000
commitdc9010572c1d32a4e1c82afbee2a359c429cc9aa (patch)
treebef5d94aba307ca55c9768f8d6af2f35d7f2bb35 /buildtools/wafsamba/samba_autoconf.py
parent9a2ea72d2d1affa853a70131301de96f258178a8 (diff)
downloadsamba-dc9010572c1d32a4e1c82afbee2a359c429cc9aa.tar.gz
samba-dc9010572c1d32a4e1c82afbee2a359c429cc9aa.tar.bz2
samba-dc9010572c1d32a4e1c82afbee2a359c429cc9aa.zip
build: support systems without rpath
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 4ea29d4058..e91409e0a4 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -409,3 +409,12 @@ def CURRENT_CFLAGS(bld, target, cflags):
ret = TO_LIST(cflags)
ret.extend(list)
return ret
+
+@conf
+def CHECK_RPATH_SUPPORT(conf):
+ '''see if the system supports rpath'''
+ return conf.CHECK_CODE('int x',
+ define='HAVE_RPATH_SUPPORT',
+ execute=True,
+ msg='Checking for rpath support',
+ cflags='-Wl,-rpath=.')