diff options
author | Björn Jacke <bj@sernet.de> | 2021-03-02 22:47:35 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-03-05 12:19:14 +0000 |
commit | c63f00801cae16a855aa5283fa0cc449e84577ce (patch) | |
tree | 513856124be12663f0215782b38b44644c1ceb22 | |
parent | 1c37606163ee964584e946e36a1d1c8efb1606e3 (diff) | |
download | samba-c63f00801cae16a855aa5283fa0cc449e84577ce.tar.gz |
wscript: use --as-needed only if tested successfully
Some OSes like Solaris based OmiOS don't support this.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14288
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 996560191ac6bd603901dcd6c0de5d239e019ef4)
-rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -321,7 +321,8 @@ def configure(conf): # allows us to find problems on our development hosts faster. # It also results in faster load time. - conf.add_as_needed() + conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) + if not conf.CHECK_NEED_LC("-lc not needed"): conf.ADD_LDFLAGS('-lc', testflags=False) |