diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-08 20:44:11 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:47 +1000 |
commit | 2498a0d25e889e5d0efd82afbc57c3ac8c8863de (patch) | |
tree | 271700f9f7a8c1d5e1e17f4888ddc0c16ccb99fc /buildtools | |
parent | 7c3234c4854f904e41c69b3c25fa3bcdce765cb7 (diff) | |
download | samba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.tar.gz samba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.tar.bz2 samba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.zip |
build: saner CFLAGS handling for defines
Diffstat (limited to 'buildtools')
-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 dc4bf8f220..76878a166b 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -14,10 +14,11 @@ from samba_utils import * @runonce @conf -def DEFINE(conf, d, v): +def DEFINE(conf, d, v, add_to_cflags=False): '''define a config option''' conf.define(d, v, quote=False) - conf.env.append_value('CCDEFINES', d + '=' + str(v)) + if add_to_cflags: + conf.env.append_value('CCDEFINES', d + '=' + str(v)) @runonce def CHECK_HEADER(conf, h, add_headers=True): |