mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
waf: Factor checking for undefined symbol flags out into separate method.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
This commit is contained in:
parent
af5c6fba68
commit
86afe83d86
@ -712,3 +712,15 @@ def SETUP_CONFIGURE_CACHE(conf, enable):
|
|||||||
preproc.recursion_limit = 1
|
preproc.recursion_limit = 1
|
||||||
# in either case we don't need to scan system includes
|
# in either case we don't need to scan system includes
|
||||||
preproc.go_absolute = False
|
preproc.go_absolute = False
|
||||||
|
|
||||||
|
|
||||||
|
@conf
|
||||||
|
def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
||||||
|
# we don't want any libraries or modules to rely on runtime
|
||||||
|
# resolution of symbols
|
||||||
|
if sys.platform != "openbsd4":
|
||||||
|
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
||||||
|
|
||||||
|
if sys.platform != "openbsd4" and conf.env.undefined_ignore_ldflags == []:
|
||||||
|
if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']):
|
||||||
|
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
||||||
|
@ -75,6 +75,8 @@ def configure(conf):
|
|||||||
|
|
||||||
conf.SAMBA_CONFIG_H()
|
conf.SAMBA_CONFIG_H()
|
||||||
|
|
||||||
|
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.RECURSE('lib/tdb_compat')
|
bld.RECURSE('lib/tdb_compat')
|
||||||
bld.RECURSE('lib/tevent')
|
bld.RECURSE('lib/tevent')
|
||||||
|
@ -67,6 +67,8 @@ def configure(conf):
|
|||||||
|
|
||||||
conf.SAMBA_CONFIG_H()
|
conf.SAMBA_CONFIG_H()
|
||||||
|
|
||||||
|
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()
|
||||||
|
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.RECURSE('lib/replace')
|
bld.RECURSE('lib/replace')
|
||||||
|
@ -55,6 +55,8 @@ def configure(conf):
|
|||||||
|
|
||||||
conf.SAMBA_CONFIG_H()
|
conf.SAMBA_CONFIG_H()
|
||||||
|
|
||||||
|
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.RECURSE('lib/replace')
|
bld.RECURSE('lib/replace')
|
||||||
|
|
||||||
|
@ -58,6 +58,8 @@ def configure(conf):
|
|||||||
|
|
||||||
conf.SAMBA_CONFIG_H()
|
conf.SAMBA_CONFIG_H()
|
||||||
|
|
||||||
|
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.RECURSE('lib/replace')
|
bld.RECURSE('lib/replace')
|
||||||
bld.RECURSE('lib/talloc')
|
bld.RECURSE('lib/talloc')
|
||||||
|
10
wscript
10
wscript
@ -101,15 +101,7 @@ def configure(conf):
|
|||||||
conf.RECURSE('selftest')
|
conf.RECURSE('selftest')
|
||||||
conf.RECURSE('source3')
|
conf.RECURSE('source3')
|
||||||
|
|
||||||
# we don't want any libraries or modules to rely on runtime
|
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()
|
||||||
# resolution of symbols
|
|
||||||
if sys.platform != "openbsd4":
|
|
||||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
||||||
|
|
||||||
if sys.platform != "openbsd4" and conf.env.undefined_ignore_ldflags == []:
|
|
||||||
if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']):
|
|
||||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
|
||||||
|
|
||||||
|
|
||||||
# gentoo always adds this. We want our normal build to be as
|
# gentoo always adds this. We want our normal build to be as
|
||||||
# strict as the strictest OS we support, so adding this here
|
# strict as the strictest OS we support, so adding this here
|
||||||
|
Loading…
Reference in New Issue
Block a user