diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-21 11:04:57 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:59 +1000 |
commit | e8775226ad2e40b96d8d5aae6c31c5845c562f20 (patch) | |
tree | 2d8740c627f74592e7208041432f8f2a3c8f4046 /lib/replace/wscript | |
parent | 69c065c719c208c5ef0fd8cb5df55621dc77a3e1 (diff) | |
download | samba-e8775226ad2e40b96d8d5aae6c31c5845c562f20.tar.gz samba-e8775226ad2e40b96d8d5aae6c31c5845c562f20.tar.bz2 samba-e8775226ad2e40b96d8d5aae6c31c5845c562f20.zip |
build: added --disable-shared option
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 97e5534d5d..f6c1903091 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -20,6 +20,9 @@ def set_options(opt): opt.add_option('--sbindir', help=("system admin executables [PREFIX/sbin]"), action="store", dest='SBINDIR', default='${PREFIX}/sbin') + opt.add_option('--disable-shared', + help=("Disable all use of shared libraries"), + action="store_true", dest='disable_shared', default=False) opt.add_option('--disable-rpath', help=("Disable use of rpath for build binaries"), action="store_true", dest='disable_rpath_build', default=False) @@ -70,8 +73,10 @@ def configure(conf): conf.env.BINDIR = Options.options.BINDIR conf.env.SBINDIR = Options.options.SBINDIR + conf.env.DISABLE_SHARED = Options.options.disable_shared + # check for rpath - if conf.CHECK_RPATH_SUPPORT(): + if not conf.env.DISABLE_SHARED and conf.CHECK_RPATH_SUPPORT(): 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) |