summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-03-16 13:34:05 +1100
committerAmitay Isaacs <amitay@samba.org>2012-03-16 05:14:02 +0100
commitaf68fe7113ae0783f03732a6cda53e7ccae3220a (patch)
treeaec3c7c2e93d3f461c99f1bebdc58b7a5bc54f40 /buildtools/wafsamba
parent0affe19304b96332c5c1ff36373203216a35ec07 (diff)
downloadsamba-af68fe7113ae0783f03732a6cda53e7ccae3220a.tar.gz
samba-af68fe7113ae0783f03732a6cda53e7ccae3220a.tar.bz2
samba-af68fe7113ae0783f03732a6cda53e7ccae3220a.zip
build: Fix build issue on OpenBSD 5.x
Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0) Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index de4632eea8..2bb86c786c 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -722,9 +722,9 @@ def SETUP_CONFIGURE_CACHE(conf, enable):
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":
+ if sys.platform != "openbsd4" and sys.platform != "openbsd5":
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
- if sys.platform != "openbsd4" and conf.env.undefined_ignore_ldflags == []:
+ if sys.platform != "openbsd4" and sys.platform != "openbsd5" and conf.env.undefined_ignore_ldflags == []:
if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']):
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']