mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
build: use as-needed linker flag also on OpenBSD
OpenBSD is unusable with binaries with many superfluous libs linked in. samba-tool start times of 250 seconds without as-needed vs. 1.4 seconds with as-needed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11355 Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Ralph Böhme <rb@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Sep 11 03:37:17 CEST 2015 on sn-devel-104
This commit is contained in:
parent
d3e51b9cfe
commit
b0f41c07ff
3
wscript
3
wscript
@ -166,8 +166,7 @@ def configure(conf):
|
||||
# allows us to find problems on our development hosts faster.
|
||||
# It also results in faster load time.
|
||||
|
||||
if not sys.platform.startswith("openbsd"):
|
||||
conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
|
||||
conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True)
|
||||
|
||||
if not conf.CHECK_NEED_LC("-lc not needed"):
|
||||
conf.ADD_LDFLAGS('-lc', testflags=False)
|
||||
|
Loading…
Reference in New Issue
Block a user