summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-02-09 15:07:39 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-03-10 07:31:11 +0100
commitb7a53086120efb8185f2fe65b2db884d1ae1c2ef (patch)
tree85a526aec4e82ed89478c58c312b01651f1c061e /buildtools
parentfe8bba5f8174b81eb4fe660f3250b9222498f9b7 (diff)
downloadsamba-b7a53086120efb8185f2fe65b2db884d1ae1c2ef.tar.gz
buildtools: Work around a . being in the target name when building python3 helpers
The pyparam_util module becomes pyparam_util.cpython_35m_x86_64_linux_gnu but the command line parser for -D stops at the first . That we even set -DSTATIC_subsystem_MODULES_PROTO for these subsystems without any modules ever declared is left for another time Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_deps.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py
index 2ffe745b821..978a5e9afe6 100644
--- a/buildtools/wafsamba/samba_deps.py
+++ b/buildtools/wafsamba/samba_deps.py
@@ -229,6 +229,7 @@ def add_init_functions(self):
if modules == []:
sname = sname.replace('-','_')
+ sname = sname.replace('.','_')
sname = sname.replace('/','_')
cflags.append('-DSTATIC_%s_MODULES=%s' % (sname, sentinel))
if sentinel == 'NULL':