summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-08 20:44:11 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:47 +1000
commit2498a0d25e889e5d0efd82afbc57c3ac8c8863de (patch)
tree271700f9f7a8c1d5e1e17f4888ddc0c16ccb99fc /lib
parent7c3234c4854f904e41c69b3c25fa3bcdce765cb7 (diff)
downloadsamba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.tar.gz
samba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.tar.bz2
samba-2498a0d25e889e5d0efd82afbc57c3ac8c8863de.zip
build: saner CFLAGS handling for defines
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index a7955a6992..0f3689a808 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -47,8 +47,8 @@ def configure(conf):
# check for pkgconfig
conf.check_cfg(atleast_pkgconfig_version='0.0.0')
- conf.DEFINE('_GNU_SOURCE', 1)
- conf.DEFINE('_XOPEN_SOURCE_EXTENDED', 1)
+ conf.DEFINE('_GNU_SOURCE', 1, add_to_cflags=True)
+ conf.DEFINE('_XOPEN_SOURCE_EXTENDED', 1, add_to_cflags=True)
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
conf.CHECK_HEADERS('unistd.h sys/types.h stdlib.h stdio.h stddef.h')