]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Do not use --export-dynamic flag on OpenBSD 5.x
authorAmitay Isaacs <amitay@gmail.com>
Fri, 16 Mar 2012 11:57:09 +0000 (22:57 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 16 Mar 2012 15:04:31 +0000 (16:04 +0100)
With --export-dynamic flag on OpenBSD 5.x, extra symbols get added in the
data segment which causes ABI generation script to fail.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 16:04:31 CET 2012 on sn-devel-104

source3/wscript

index 4da8a4470978d2bbc138ac0fe98aa184ec58ae77..476fb109b5676405559b473b94143d7b65b4bc2e 100644 (file)
@@ -69,7 +69,8 @@ def configure(conf):
     if Options.options.with_swat:
         conf.env['build_swat'] = True
 
-    conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True)
+    if sys.platform != 'openbsd5':
+        conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True)
 
     conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h netdb.h')
     conf.CHECK_HEADERS('linux/falloc.h')