diff options
author | Michael Hanselmann <public@hansmi.ch> | 2019-03-23 00:14:52 +0100 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-04-02 17:28:40 +0000 |
commit | 47278bfaa6dec543be49c0d66a2418928356a4a3 (patch) | |
tree | 91236d70398afafc1e73f512f518762ad7814184 /buildtools | |
parent | 9314bd0b25c397deec6e431c7f64be9e5c00d02b (diff) | |
download | samba-47278bfaa6dec543be49c0d66a2418928356a4a3.tar.gz |
waf: Simplify condition for undefined symbol detection
There's no need to check for OpenBSD twice.
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Apr 2 17:28:40 UTC 2019 on sn-devel-144
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index ee1fc231eb9..98ffdfea458 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -919,12 +919,11 @@ def SETUP_CONFIGURE_CACHE(conf, enable): @conf def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf): - # we don't want any libraries or modules to rely on runtime - # resolution of symbols if not sys.platform.startswith("openbsd"): + # we don't want any libraries or modules to rely on runtime + # resolution of symbols conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) - if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: - if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']): + if (conf.env.undefined_ignore_ldflags == [] and + conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])): conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] - |