summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/makefile.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-20 04:33:43 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-20 04:33:43 +0100
commit39a817d310964f8e9a63cfb096b3ad24fa03bd5e (patch)
tree3fa2381e086942f94372cecba60e919bd7805cb7 /source4/build/smb_build/makefile.pm
parent0020793515ade04f3ef5754717490e2eb2ca6bb9 (diff)
downloadsamba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.tar.gz
samba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.tar.bz2
samba-39a817d310964f8e9a63cfb096b3ad24fa03bd5e.zip
Fix use of some modules (needed _PUBLIC_).
(This used to be commit ce332130ea77159832da23bab760fa26921719e2)
Diffstat (limited to 'source4/build/smb_build/makefile.pm')
-rw-r--r--source4/build/smb_build/makefile.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index d11e761ce1..22b813b946 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -160,7 +160,8 @@ sub SharedModule($$)
$self->_prepare_list($ctx, "DEPEND_LIST");
$self->_prepare_list($ctx, "LINK_FLAGS");
- if (defined($ctx->{INIT_FUNCTION}) and $ctx->{TYPE} ne "PYTHON") {
+ if (defined($ctx->{INIT_FUNCTION}) and $ctx->{TYPE} ne "PYTHON" and
+ $ctx->{INIT_FUNCTION_TYPE} =~ /\(\*\)/) {
my $init_fn = $ctx->{INIT_FUNCTION_TYPE};
$init_fn =~ s/\(\*\)/init_module/;
my $proto_fn = $ctx->{INIT_FUNCTION_TYPE};