mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
build: cope with realname for install of non-python libs
this fixes the install of mit_samba.so
This commit is contained in:
parent
267e0b3616
commit
f66fcd9608
@ -87,7 +87,10 @@ def install_library(self):
|
||||
if self.samba_realname:
|
||||
install_name = self.samba_realname
|
||||
install_link = None
|
||||
inst_name = t.target + '.so'
|
||||
if getattr(self, 'samba_type', None) == 'PYTHON':
|
||||
inst_name = '%s.so' % t.target
|
||||
else:
|
||||
inst_name = 'lib%s.so' % t.target
|
||||
elif self.vnum:
|
||||
vnum_base = self.vnum.split('.')[0]
|
||||
install_name = 'lib%s.so.%s' % (self.target, self.vnum)
|
||||
|
@ -161,7 +161,7 @@ def SAMBA_LIBRARY(bld, libname, source,
|
||||
deps = TO_LIST(deps)
|
||||
deps.append(obj_target)
|
||||
|
||||
if target_type == 'PYTHON':
|
||||
if target_type == 'PYTHON' or realname:
|
||||
bundled_name = libname
|
||||
else:
|
||||
bundled_name = BUNDLED_NAME(bld, libname, bundled_extension)
|
||||
@ -197,6 +197,9 @@ def SAMBA_LIBRARY(bld, libname, source,
|
||||
abi_match = abi_match
|
||||
)
|
||||
|
||||
if realname and not link_name:
|
||||
link_name = 'shared/%s' % realname
|
||||
|
||||
if link_name:
|
||||
t.link_name = link_name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user