summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_deps.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py
index 8f002c8b9b..188c2dd75f 100644
--- a/buildtools/wafsamba/samba_deps.py
+++ b/buildtools/wafsamba/samba_deps.py
@@ -214,9 +214,11 @@ def add_init_functions(self):
cflags = getattr(self, 'samba_cflags', [])[:]
if modules == []:
- cflags.append('-DSTATIC_%s_MODULES=%s' % (sname.replace('-','_'), sentinal))
+ sname = sname.replace('-','_')
+ sname = sname.replace('/','_')
+ cflags.append('-DSTATIC_%s_MODULES=%s' % (sname, sentinal))
if sentinal == 'NULL':
- cflags.append('-DSTATIC_%s_MODULES_PROTO' % sname.replace('-','_'))
+ cflags.append('-DSTATIC_%s_MODULES_PROTO' % sname)
self.ccflags = cflags
return