s3-waf: add -Wl,--export-dynamic to LDFLAGS.
authorGünther Deschner <gd@samba.org>
Thu, 9 Dec 2010 14:44:30 +0000 (15:44 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 13 Dec 2010 09:53:42 +0000 (10:53 +0100)
Our binaries did not export symbols so e.g. smbd could not load vfs modules.
Patch from tridge.

We might remove this later on, once we decide to resolve all symbols and fix all
dependencies in s3 modules.

Guenther

source3/wscript

index 2bf6fb8f4e0823eec08c789d366913001d44a662..c02f2a239decc477b54ca43ca56e5d62af3e8cb7 100644 (file)
@@ -85,6 +85,8 @@ def configure(conf):
     conf.RECURSE('../lib/zlib')
     conf.RECURSE('../libcli/smbreadline')
 
+    conf.ADD_LDFLAGS("-Wl,--export-dynamic", testflags=True)
+
     conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h netdb.h')
 
     conf.CHECK_FUNCS('getcwd fchown chmod fchmod mknod mknod64')