summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/smb_build/input.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index df9a525f4f..27a00890b4 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -93,9 +93,10 @@ sub check_module($$$)
unless (defined($mod->{INIT_FUNCTION_SENTINEL})) { $mod->{INIT_FUNCTION_SENTINEL} = "NULL"; }
if (not defined($mod->{OUTPUT_TYPE})) {
- if ((not defined($INPUT->{$mod->{SUBSYSTEM}}->{TYPE})) or
+ if ((not defined($INPUT->{$mod->{SUBSYSTEM}})) or
+ (not defined($INPUT->{$mod->{SUBSYSTEM}}->{TYPE})) or
$INPUT->{$mod->{SUBSYSTEM}}->{TYPE} eq "EXT_LIB") {
- $mod->{OUTPUT_TYPE} = undef;
+ $mod->{OUTPUT_TYPE} = ["SHARED_LIBRARY"];
} else {
$mod->{OUTPUT_TYPE} = $default_ot;
}