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/samba_install.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/samba_install.py')
-rw-r--r-- | buildtools/wafsamba/samba_install.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py index 471ef5a49e..3c24679a72 100644 --- a/buildtools/wafsamba/samba_install.py +++ b/buildtools/wafsamba/samba_install.py @@ -148,6 +148,18 @@ def apply_soname(self): self.env.append_value('LINKFLAGS', self.env.SONAME_ST % self.soname) self.env.SONAME_ST = '' +@feature('cshlib') +@after('apply_implib') +@before('apply_vnum') +def apply_vscript(self): + '''add version-script arguments to library build''' + + if self.env.HAVE_LD_VERSION_SCRIPT and getattr(self, 'version_script', ''): + self.env.append_value('LINKFLAGS', "-Wl,--version-script=%s" % + os.path.join(self.path.abspath(self.env), self.version_script)) + self.version_script = None + + ############################## # handle the creation of links for libraries and binaries in the build tree |