diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-17 19:16:33 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-17 19:16:33 +0100 |
commit | 13b4e6e8c7616e37e4b1d37b49b82921c8c6059d (patch) | |
tree | 9cf7d23d89f53623052063f6ea9d3885ca900cb3 /buildtools/wafsamba/wafsamba.py | |
parent | 5bccb326437198098a39abf9387dc61c9c4066b3 (diff) | |
download | samba-13b4e6e8c7616e37e4b1d37b49b82921c8c6059d.tar.gz samba-13b4e6e8c7616e37e4b1d37b49b82921c8c6059d.tar.bz2 samba-13b4e6e8c7616e37e4b1d37b49b82921c8c6059d.zip |
wafsamba: Move version script handling out of SAMBA_LIBRARY.
Diffstat (limited to 'buildtools/wafsamba/wafsamba.py')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 40dae9bd0a..33ed018d4a 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -212,13 +212,14 @@ def SAMBA_LIBRARY(bld, libname, source, version = None if version: bld.ABI_VSCRIPT(libname, abi_directory, version, vscript) - ldflags.append("-Wl,--version-script=%s/%s" % (bld.path.abspath(bld.env), vscript)) fullname = bld.env.shlib_PATTERN % bundled_name bld.add_manual_dependency(bld.path.find_or_declare(fullname), bld.path.find_or_declare(vscript)) if Options.is_install: # also make the .inst file depend on the vscript instname = bld.env.shlib_PATTERN % (bundled_name + '.inst') bld.add_manual_dependency(bld.path.find_or_declare(instname), bld.path.find_or_declare(vscript)) + else: + vscript = None bld.SET_BUILD_GROUP(group) t = bld( @@ -229,6 +230,7 @@ def SAMBA_LIBRARY(bld, libname, source, samba_ldflags = ldflags, samba_deps = deps, samba_includes = includes, + version_script = vscript, local_include = local_include, vnum = vnum, soname = soname, |