From d08ddf08a8f008909e3cf4ff1c1933566f1ec275 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 11 Feb 2011 12:05:10 +0100 Subject: waf: substitute '/' in -D static defines as well. Tridge, please check. Guenther --- buildtools/wafsamba/samba_deps.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'buildtools') 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 -- cgit