diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-21 23:04:43 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-21 23:10:14 +1100 |
commit | fcdbd0613631b02b991214b2dccbb97eb571ac28 (patch) | |
tree | ea175268351a0d1fc9f50b70605f374ee2e21058 /buildtools/wafsamba/samba_autoconf.py | |
parent | 808edd02936879862df685775a12b1efba5947ea (diff) | |
download | samba-fcdbd0613631b02b991214b2dccbb97eb571ac28.tar.gz samba-fcdbd0613631b02b991214b2dccbb97eb571ac28.tar.bz2 samba-fcdbd0613631b02b991214b2dccbb97eb571ac28.zip |
waf: fixed the build with a space in the source directory
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index e84a456287..03031a7c78 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -356,8 +356,10 @@ def CHECK_CODE(conf, code, define, if msg is None: msg="Checking for %s" % define + cflags = TO_LIST(cflags) + if local_include: - cflags += ' -I%s' % conf.curdir + cflags.append('-I%s' % conf.curdir) if not link: type='nolink' @@ -368,7 +370,6 @@ def CHECK_CODE(conf, code, define, (ccflags, ldflags) = library_flags(conf, uselib) - cflags = TO_LIST(cflags) cflags.extend(ccflags) if on_target: |