diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-11-05 00:33:51 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-11-05 02:06:05 +0000 |
commit | afc332fdb1327d07488552d01316804bff614748 (patch) | |
tree | 0a101b9c912b7360569247f572673b7dda7e07d5 /buildtools | |
parent | ec7501ea4fe7e7d2bbb94ef5353b8059be3ae0fb (diff) | |
download | samba-afc332fdb1327d07488552d01316804bff614748.tar.gz samba-afc332fdb1327d07488552d01316804bff614748.tar.bz2 samba-afc332fdb1327d07488552d01316804bff614748.zip |
wafsamba: Drop private library prefix when installing private libraries
to a custom path.
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_bundled.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py index d395b82008..4f6590eb3b 100644 --- a/buildtools/wafsamba/samba_bundled.py +++ b/buildtools/wafsamba/samba_bundled.py @@ -4,12 +4,15 @@ from Configure import conf import Logs from samba_utils import * -def PRIVATE_NAME(bld, name, bundled_extension, private_library): +def PRIVATE_NAME(bld, name, private_extension, private_library): '''possibly rename a library to include a bundled extension''' - if bld.env.DISABLE_SHARED or not bundled_extension: + if bld.env.DISABLE_SHARED or not private_extension: return name if name in bld.env.PRIVATE_EXTENSION_EXCEPTION and not private_library: return name + if private_library and bld.EXPAND_VARIABLES(bld.env.LIBDIR) != bld.EXPAND_VARIABLES(bld.env.PRIVATELIBDIR): + # Private libraries already have their own namespace in another way + return name extension = getattr(bld.env, 'PRIVATE_EXTENSION', '') if extension: return name + '-' + extension |