diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-12-08 19:00:00 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-12-08 12:01:25 +0100 |
commit | 8b3ae1a3b80a07f40d17a59e4f334e2df496b535 (patch) | |
tree | d360131c2e0b29f5aaf4610408c36001e675f38a /buildtools/wafsamba | |
parent | af1b098441b0d49dd5caf80a6950171135ca5e79 (diff) | |
download | samba-8b3ae1a3b80a07f40d17a59e4f334e2df496b535.tar.gz samba-8b3ae1a3b80a07f40d17a59e4f334e2df496b535.tar.bz2 samba-8b3ae1a3b80a07f40d17a59e4f334e2df496b535.zip |
waf: added --disable-symbol-versions configure option
some people may not want symbol versions.
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/wscript | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index f3551253c6..5756df4cb0 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -61,6 +61,9 @@ def set_options(opt): gr.add_option('--nonshared-binary', help=("Disable use of shared libs for the listed binaries"), action="store", dest='NONSHARED_BINARIES', default='') + gr.add_option('--disable-symbol-versions', + help=("Disable use of the --version-script linker option"), + action="store_true", dest='disable_symbol_versions', default=False) opt.add_option('--with-modulesdir', help=("modules directory [PREFIX/modules]"), @@ -288,9 +291,11 @@ def configure(conf): # the user can of course always override it. conf.env.PRIVATELIBDIR = conf.env.LIBDIR - if not conf.env.DISABLE_SHARED and conf.CHECK_LIBRARY_SUPPORT(rpath=support_rpath, - version_script=True, - msg='-Wl,--version-script support'): + if (not conf.env.DISABLE_SHARED and + not Options.options.disable_symbol_versions and + conf.CHECK_LIBRARY_SUPPORT(rpath=support_rpath, + version_script=True, + msg='-Wl,--version-script support')): conf.env.HAVE_LD_VERSION_SCRIPT = True else: conf.env.HAVE_LD_VERSION_SCRIPT = False |