summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-08 12:47:09 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-08 02:31:18 +0000
commite427f2fc813d96a59fc3a98f6a94df209c301d2b (patch)
tree73b75e58c26ea68815e047aed81084b65b427a60
parent5a6a9ea45c248281314bf8d4beb520db79055d02 (diff)
downloadsamba-e427f2fc813d96a59fc3a98f6a94df209c301d2b.tar.gz
samba-e427f2fc813d96a59fc3a98f6a94df209c301d2b.tar.bz2
samba-e427f2fc813d96a59fc3a98f6a94df209c301d2b.zip
waf: fixed the names of the installed libraries after the last change
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 8 02:31:18 UTC 2010 on sn-devel-104
-rw-r--r--buildtools/wafsamba/samba_install.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py
index 634d5b120b..bf534f0c6f 100644
--- a/buildtools/wafsamba/samba_install.py
+++ b/buildtools/wafsamba/samba_install.py
@@ -76,6 +76,8 @@ def install_library(self):
install_path = '${LIBDIR}'
install_path = bld.EXPAND_VARIABLES(install_path)
+ target_name = self.target
+
if install_ldflags != build_ldflags:
# we will be creating a new target name, and using that for the
# install link. That stops us from overwriting the existing build
@@ -92,6 +94,12 @@ def install_library(self):
dev_link = None
+ # in the following the names are:
+ # - inst_name is the name with .inst. in it, in the build
+ # directory
+ # - install_name is the name in the install directory
+ # - install_link is a symlink in the install directory, to install_name
+
if getattr(self, 'samba_realname', None):
install_name = self.samba_realname
install_link = None
@@ -101,18 +109,18 @@ def install_library(self):
inst_name = bld.make_libname(t.target)
elif self.vnum:
vnum_base = self.vnum.split('.')[0]
- install_name = bld.make_libname(self.target, version=self.vnum)
- install_link = bld.make_libname(self.target, version=vnum_base)
+ install_name = bld.make_libname(target_name, version=self.vnum)
+ install_link = bld.make_libname(target_name, version=vnum_base)
inst_name = bld.make_libname(t.target)
if not self.private_library:
# only generate the dev link for non-bundled libs
- dev_link = bld.make_libname(self.target)
+ dev_link = bld.make_libname(target_name)
elif getattr(self, 'soname', ''):
- install_name = bld.make_libname(self.target)
+ install_name = bld.make_libname(target_name)
install_link = self.soname
inst_name = bld.make_libname(t.target)
else:
- install_name = bld.make_libname(self.target)
+ install_name = bld.make_libname(target_name)
install_link = None
inst_name = bld.make_libname(t.target)