From a20f025ff611d541b82b83791013f2713c999235 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 10 Oct 2010 22:52:35 +0200 Subject: wafsamba: Fix init function when building modules as shared objects. Signed-off-by: Jelmer Vernooij --- buildtools/wafsamba/wafsamba.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 9c2c7be3b3..02bb966574 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -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, -- cgit