mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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
This commit is contained in:
parent
5a6a9ea45c
commit
e427f2fc81
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user