summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-12-18 10:21:30 +0100
committerKarolin Seeger <kseeger@samba.org>2015-01-11 14:03:10 +0100
commitb3f140d6eb6610d1e8fc40dd862e1052f2ac5337 (patch)
tree38c40ae4bd6eba4c71cf22051f185fb8b67d58ec /buildtools
parent16f881c37260861957fe10f1a485f45bcb7e912e (diff)
downloadsamba-b3f140d6eb6610d1e8fc40dd862e1052f2ac5337.tar.gz
wafsamba: add optional keep_underscore=True to SAMBA_LIBRARY()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9299 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (similar to commit 82e583b04b04e560c121163850d70c52d2fce78d)
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index c8220c2e9cd..6f0e11bb6d5 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -109,6 +109,7 @@ def SAMBA_LIBRARY(bld, libname, source,
ldflags='',
external_library=False,
realname=None,
+ keep_underscore=False,
autoproto=None,
autoproto_extra_source='',
group='main',
@@ -209,7 +210,10 @@ def SAMBA_LIBRARY(bld, libname, source,
libname)
if target_type == 'PYTHON' or realname or not private_library:
- bundled_name = libname.replace('_', '-')
+ if keep_underscore:
+ bundled_name = libname
+ else:
+ bundled_name = libname.replace('_', '-')
else:
bundled_name = PRIVATE_NAME(bld, libname, bundled_extension,
private_library)