summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/input.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-09 14:39:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:54:02 -0500
commit6500444a2d74c7d921e7300939f459a83b95ea14 (patch)
tree28867a5bdc55e7bc4877b604c2103c77e9397184 /source4/build/smb_build/input.pm
parent5ead79baffdf33465d0b650ebb17af009d2af757 (diff)
downloadsamba-6500444a2d74c7d921e7300939f459a83b95ea14.tar.gz
samba-6500444a2d74c7d921e7300939f459a83b95ea14.tar.bz2
samba-6500444a2d74c7d921e7300939f459a83b95ea14.zip
r14072: - only add the 'lib' prefix to libraries not modules
- fix installation of plugins (and make it a bit more verbose - get rid of the '#define libfoo_module_init init_module' and genereated a wrapper function in bin/libfoo_module_init_module.c - change the standard visibility for modules to hidden - a few make clean fixes metze (This used to be commit 89b5667ab0f761e679fdee0f5c3d94942e67e28e)
Diffstat (limited to 'source4/build/smb_build/input.pm')
-rw-r--r--source4/build/smb_build/input.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index 8cad9aafa6..fd887094aa 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -66,6 +66,12 @@ sub check_module($$$)
return;
}
+ if (exists($INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTION_TYPE})) {
+ $mod->{INIT_FUNCTION_TYPE} = $INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTION_TYPE};
+ } else {
+ $mod->{INIT_FUNCTION_TYPE} = "NTSTATUS (*) (void)";
+ }
+
if (defined($mod->{CHOSEN_BUILD}) and $mod->{CHOSEN_BUILD} ne "DEFAULT")
{
$mod->{OUTPUT_TYPE} = $mod->{CHOSEN_BUILD};
@@ -160,7 +166,7 @@ sub check($$$$$)
}
unless (defined($part->{STANDARD_VISIBILITY})) {
- if ($part->{TYPE} eq "BINARY") {
+ if ($part->{TYPE} eq "MODULE" or $part->{TYPE} eq "BINARY") {
$part->{STANDARD_VISIBILITY} = "hidden";
} else {
$part->{STANDARD_VISIBILITY} = "default";