summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-01-19 16:53:39 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-19 20:23:50 +0100
commitdd141cf5f735e3c0ecf7517cdc83cbacd678e644 (patch)
treeba9ca931f676f619decb2bffa922694d720f0296 /buildtools/wafsamba
parent448388e609f9d6bad68a187983fa2507492e6511 (diff)
downloadsamba-dd141cf5f735e3c0ecf7517cdc83cbacd678e644.tar.gz
samba-dd141cf5f735e3c0ecf7517cdc83cbacd678e644.tar.bz2
samba-dd141cf5f735e3c0ecf7517cdc83cbacd678e644.zip
wafsamba: quote CPP and CC values when calling pidl
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 19 20:23:50 CET 2011 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_pidl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index 2770728a44..f40066eb69 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -62,9 +62,9 @@ def SAMBA_PIDL(bld, pname, source,
cc = ""
if bld.CONFIG_SET("CPP"):
if isinstance(bld.CONFIG_GET("CPP"), list):
- cpp = "CPP=%s" % bld.CONFIG_GET("CPP")[0]
+ cpp = 'CPP="%s"' % bld.CONFIG_GET("CPP")[0]
else:
- cpp = "CPP=%s" % bld.CONFIG_GET("CPP")
+ cpp = 'CPP="%s"' % bld.CONFIG_GET("CPP")
if cpp == "CPP=xlc_r":
cpp = ""
@@ -72,9 +72,9 @@ def SAMBA_PIDL(bld, pname, source,
if bld.CONFIG_SET("CC"):
if isinstance(bld.CONFIG_GET("CC"), list):
- cc = "CC=%s" % bld.CONFIG_GET("CC")[0]
+ cc = 'CC="%s"' % bld.CONFIG_GET("CC")[0]
else:
- cc = "CC=%s" % bld.CONFIG_GET("CC")
+ cc = 'CC="%s"' % bld.CONFIG_GET("CC")
t = bld(rule='cd .. && %s %s ${PERL} "${PIDL}" --quiet ${OPTIONS} --outputdir ${OUTPUTDIR} -- "${SRC[0].abspath(env)}"' % (cpp, cc),
ext_out = '.c',