summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-13 19:45:38 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-13 20:15:41 +1000
commit58abd9ac81e18276ee3e2dd9b545b1525f67f721 (patch)
treef706b9645a971d27032db86ebb7662af14791d5f /buildtools/wafsamba
parent16d4d0346daa9678f2969fa1fde52eed58643c00 (diff)
downloadsamba-58abd9ac81e18276ee3e2dd9b545b1525f67f721.tar.gz
samba-58abd9ac81e18276ee3e2dd9b545b1525f67f721.tar.bz2
samba-58abd9ac81e18276ee3e2dd9b545b1525f67f721.zip
build: for unbundled libraries install devel link too
We need a symlink libFOO.so -> libFOO.so.x.y as a development symlink Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_install.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py
index 28bd270dd4..74730dd3b2 100644
--- a/buildtools/wafsamba/samba_install.py
+++ b/buildtools/wafsamba/samba_install.py
@@ -82,6 +82,8 @@ def install_library(self):
t.env.append_value('LINKFLAGS', install_ldflags)
+ dev_link = None
+
if self.samba_realname:
install_name = self.samba_realname
install_link = None
@@ -91,6 +93,9 @@ def install_library(self):
install_name = 'lib%s.so.%s' % (self.target, self.vnum)
install_link = 'lib%s.so.%s' % (self.target, vnum_base)
inst_name = 'lib%s.so' % t.target
+ if self.target == self.name:
+ # only generate the dev link for non-bundled libs
+ dev_link = 'lib%s.so' % self.target
else:
install_name = 'lib%s.so' % self.target
install_link = None
@@ -103,6 +108,9 @@ def install_library(self):
# and the symlink if needed
bld.symlink_as(os.path.join(install_path, install_link),
install_name)
+ if dev_link:
+ bld.symlink_as(os.path.join(install_path, dev_link),
+ install_name)