diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 8f002c8b9b4..188c2dd75f3 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