summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 23:16:20 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:45 +1000
commit12c46d90552e7c51a4c0757cae7ee48b93aeec9d (patch)
tree442c7581d681969d1874cc4aa8f132e157487d04
parentae1c2b90226d610e1d4e3c992d8b8ea4515aa846 (diff)
downloadsamba-12c46d90552e7c51a4c0757cae7ee48b93aeec9d.tar.gz
samba-12c46d90552e7c51a4c0757cae7ee48b93aeec9d.tar.bz2
samba-12c46d90552e7c51a4c0757cae7ee48b93aeec9d.zip
build: fixed cflags in CHECK_CODE()
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index b186804292..36bc2484ec 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -198,11 +198,13 @@ def CHECK_CODE(conf, code, define,
if msg is None:
msg="Checking for %s" % define
+ cflags = cflags + ' -I%s' % conf.curdir
+
if conf.check(fragment=fragment,
execute=execute,
define_name = define,
mandatory = mandatory,
- ccflags='-I%s %s' % (conf.curdir, cflags),
+ ccflags=to_list(cflags),
includes='# . ../default',
msg=msg):
conf.DEFINE(define, 1)