diff options
-rw-r--r-- | source4/build/smb_build/input.pm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index c574b5d4a5..6978c540e4 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -114,9 +114,16 @@ sub check_library($$) } $lib->{OUTPUT_TYPE} = "SHARED_LIBRARY"; - $lib->{MAJOR_VERSION} = join('', @{$lib->{MAJOR_VERSION}}); - $lib->{MINOR_VERSION} = join('', @{$lib->{MINOR_VERSION}}); - $lib->{RELEASE_VERSION} = join('', @{$lib->{RELEASE_VERSION}}); + + if (defined($lib->{MAJOR_VERSION})) { + $lib->{MAJOR_VERSION} = join('', $lib->{MAJOR_VERSION}); + } + if (defined($lib->{MINOR_VERSION})) { + $lib->{MINOR_VERSION} = join('', $lib->{MINOR_VERSION}); + } + if (defined($lib->{RELEASE_VERSION})) { + $lib->{RELEASE_VERSION} = join('', $lib->{RELEASE_VERSION}); + } } sub check_binary($$) |