summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-11 12:05:10 +0100
committerGünther Deschner <gd@samba.org>2011-02-11 12:22:41 +0100
commitd08ddf08a8f008909e3cf4ff1c1933566f1ec275 (patch)
tree314eace38def024e5fbb8562bcb1788a4788a85c /buildtools
parente4bf69285b25f709740fc688b304e2f000112380 (diff)
downloadsamba-d08ddf08a8f008909e3cf4ff1c1933566f1ec275.tar.gz
samba-d08ddf08a8f008909e3cf4ff1c1933566f1ec275.tar.bz2
samba-d08ddf08a8f008909e3cf4ff1c1933566f1ec275.zip
waf: substitute '/' in -D static defines as well.
Tridge, please check. Guenther
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