From 12c46d90552e7c51a4c0757cae7ee48b93aeec9d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 23:16:20 +1100 Subject: build: fixed cflags in CHECK_CODE() --- buildtools/wafsamba/samba_autoconf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba/samba_autoconf.py') 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) -- cgit