summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-11-05 00:03:20 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-11-05 02:06:05 +0000
commite84e8705a98f3525f680a3d7e35ad55ae5370f51 (patch)
treec0020f7b91da1178eeea7c70e6e9aefb81c3f69d /buildtools/wafsamba/wscript
parente15cd9c6d5262b516b43208fd41ac398606caa46 (diff)
downloadsamba-e84e8705a98f3525f680a3d7e35ad55ae5370f51.tar.gz
samba-e84e8705a98f3525f680a3d7e35ad55ae5370f51.tar.bz2
samba-e84e8705a98f3525f680a3d7e35ad55ae5370f51.zip
Add --disable-rpath-private-install flag.
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r--buildtools/wafsamba/wscript17
1 files changed, 15 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
index 7d8bb24414..78ccaa77f2 100644
--- a/buildtools/wafsamba/wscript
+++ b/buildtools/wafsamba/wscript
@@ -53,8 +53,11 @@ def set_options(opt):
help=("Disable use of rpath for build binaries"),
action="store_true", dest='disable_rpath_build', default=False)
gr.add_option('--disable-rpath-install',
- help=("Disable use of rpath for installed binaries"),
+ help=("Disable use of rpath for library path in installed files"),
action="store_true", dest='disable_rpath_install', default=False)
+ gr.add_option('--disable-rpath-private-install',
+ help=("Disable use of rpath for private library path in installed files"),
+ action="store_true", dest='disable_rpath_private_install', default=False)
gr.add_option('--nonshared-binary',
help=("Disable use of shared libs for the listed binaries"),
action="store", dest='NONSHARED_BINARIES', default='')
@@ -65,7 +68,7 @@ def set_options(opt):
opt.add_option('--with-privatelibdir',
help=("private library directory [PREFIX/lib/samba4]"),
- action="store", dest='PRIVATELIBDIR', default='${PREFIX}/lib/samba4')
+ action="store", dest='PRIVATELIBDIR', default=None)
gr = opt.option_group('developer options')
@@ -264,9 +267,19 @@ def configure(conf):
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)
+ if not conf.env.PRIVATELIBDIR:
+ conf.env.PRIVATELIBDIR = '${PREFIX}/lib/samba4'
+ conf.env.RPATH_ON_INSTALL_PRIVATE = (
+ not Options.options.disable_rpath_private_install)
else:
conf.env.RPATH_ON_INSTALL = False
conf.env.RPATH_ON_BUILD = False
+ conf.env.RPATH_ON_INSTALL_PRIVATE = False
+ if not conf.env.PRIVATELIBDIR:
+ # rpath is not possible so there is no sense in having a
+ # private library directory by default.
+ # the user can of course always override it.
+ conf.env.PRIVATELIBDIR = conf.env.LIBDIR
# we should use the PIC options in waf instead
# Some compilo didn't support -fPIC but just print a warning