wafsamba: Fix init function when building modules as shared objects.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 10 Oct 2010 20:52:35 +0000 (22:52 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 10 Oct 2010 21:05:40 +0000 (23:05 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
buildtools/wafsamba/wafsamba.py

index 9c2c7be3b37d4db1cc1401bb7b7773373d6daa95..02bb96657431a456c25afe98239102be868de272 100644 (file)
@@ -366,6 +366,9 @@ def SAMBA_MODULE(bld, modname, source,
 
         build_link_name = "modules/%s/%s" % (subsystem, realname)
 
+        if init_function:
+            cflags += " -D%s=samba_init_module" % init_function
+
         bld.SAMBA_LIBRARY(modname,
                           source,
                           deps=deps,