From: Stefan Metzmacher Date: Fri, 16 Jan 2015 23:24:53 +0000 (+0100) Subject: wafsamba: make it possible to pass bundled_name to SAMBA_LIBRARY() X-Git-Tag: samba-4.2.0rc5~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9fbb92f20d59539c544b2f8a2eddc309ca6e539;p=thirdparty%2Fsamba.git wafsamba: make it possible to pass bundled_name to SAMBA_LIBRARY() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10112 Signed-off-by: Stefan Metzmacher Reviewed-by: Jelmer Vernooij (cherry picked from commit 7668e457a6463fb2c1d7499659f37d10ca322190) --- diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 7a5e23c2e88..cbc0f44c636 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -130,6 +130,7 @@ def SAMBA_LIBRARY(bld, libname, source, pyext=False, target_type='LIBRARY', bundled_extension=False, + bundled_name=None, link_name=None, abi_directory=None, abi_match=None, @@ -223,7 +224,9 @@ def SAMBA_LIBRARY(bld, libname, source, raise Utils.WafError("public library '%s' must have header files" % libname) - if target_type == 'PYTHON' or realname or not private_library: + if bundled_name is not None: + pass + elif target_type == 'PYTHON' or realname or not private_library: if keep_underscore: bundled_name = libname else: