moved it out of the general waf build as the s3 waf build cannot yet
handle linking with -Wl,-no-undefined
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Oct 25 01:12:15 UTC 2010 on sn-devel-104
# we add these here to ensure that -Wstrict-prototypes is not set during configure
conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k',
testflags=True)
- conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
-
if Options.options.picky_developer:
conf.ADD_CFLAGS('-Werror', testflags=True)
conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
+ # we don't want any libraries or modules to rely on runtime
+ # resolution of symbols
+ conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+
conf.SAMBA_CONFIG_H()
def build(bld):
conf.RECURSE('../pidl')
conf.RECURSE('selftest')
+ # we don't want any libraries or modules to rely on runtime
+ # resolution of symbols
+ conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+
# we don't want PYTHONDIR in config.h, as otherwise changing
# --prefix causes a complete rebuild
del(conf.env.defines['PYTHONDIR'])