diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 22:52:35 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 23:05:40 +0200 |
commit | a20f025ff611d541b82b83791013f2713c999235 (patch) | |
tree | b22790c8a218f5035d1696b5ae6770389420cf86 | |
parent | 9b9489479e9c429cefd58c31be4d39da8ea90057 (diff) | |
download | samba-a20f025ff611d541b82b83791013f2713c999235.tar.gz samba-a20f025ff611d541b82b83791013f2713c999235.tar.bz2 samba-a20f025ff611d541b82b83791013f2713c999235.zip |
wafsamba: Fix init function when building modules as shared objects.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 3 |
1 files changed, 3 insertions, 0 deletions
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, |