summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wafsamba.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-09 12:24:48 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-09 13:18:03 +1100
commitc90b7824a618f878486d8d79a9b06887f05d6873 (patch)
tree18dc50deec368e2870f0e1df6367774bc13fd990 /buildtools/wafsamba/wafsamba.py
parentffb2b3d1c6b099bc80ca2c33ec50c9ff03a0a4e4 (diff)
downloadsamba-c90b7824a618f878486d8d79a9b06887f05d6873.tar.gz
samba-c90b7824a618f878486d8d79a9b06887f05d6873.tar.bz2
samba-c90b7824a618f878486d8d79a9b06887f05d6873.zip
waf: use vscripts for our private libraries too
if the library has a vnum, then use it. If it doesn't have a vnum then use the application version for symbol versions
Diffstat (limited to 'buildtools/wafsamba/wafsamba.py')
-rw-r--r--buildtools/wafsamba/wafsamba.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index aea9d2bf30..f37f10da16 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -195,10 +195,6 @@ def SAMBA_LIBRARY(bld, libname, source,
if vnum:
Logs.error("vnum is invalid for private libraries")
sys.exit(1)
- vnum = None
- version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
- else:
- version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION.split(".")[0])
features = 'cc cshlib symlink_lib install_lib'
if target_type == 'PYTHON':
@@ -210,10 +206,15 @@ def SAMBA_LIBRARY(bld, libname, source,
if abi_directory:
features += ' abi_check'
- if bld.env.HAVE_LD_VERSION_SCRIPT:
- vscript = "%s.vscript" % libname
- bld.ABI_VSCRIPT(libname, abi_directory, vnum, vscript)
- ldflags.append("-Wl,--version-script=%s/%s" % (bld.path.abspath(bld.env), vscript))
+
+ if bld.env.HAVE_LD_VERSION_SCRIPT:
+ vscript = "%s.vscript" % libname
+ if private_library:
+ version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
+ else:
+ version = "%s_%s" % (libname, vnum)
+ bld.ABI_VSCRIPT(libname, abi_directory, version, vscript)
+ ldflags.append("-Wl,--version-script=%s/%s" % (bld.path.abspath(bld.env), vscript))
bld.SET_BUILD_GROUP(group)
t = bld(