diff options
author | Günther Deschner <gd@samba.org> | 2011-02-11 12:05:10 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-11 12:22:41 +0100 |
commit | d08ddf08a8f008909e3cf4ff1c1933566f1ec275 (patch) | |
tree | 314eace38def024e5fbb8562bcb1788a4788a85c /buildtools | |
parent | e4bf69285b25f709740fc688b304e2f000112380 (diff) | |
download | samba-d08ddf08a8f008909e3cf4ff1c1933566f1ec275.tar.gz |
waf: substitute '/' in -D static defines as well.
Tridge, please check.
Guenther
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_deps.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 |