1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

waf: substitute '/' in -D static defines as well.

Tridge, please check.

Guenther
This commit is contained in:
Günther Deschner 2011-02-11 12:05:10 +01:00
parent e4bf69285b
commit d08ddf08a8

View File

@ -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