diff options
author | Tim Potter <tpot@samba.org> | 2005-05-03 01:48:24 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2005-05-03 01:48:24 +0000 |
commit | 66d5a223b7052e0c2b5379ed6ced7c0d559f4a05 (patch) | |
tree | 9163fdee06c4e3ae1558ae1cb2d68b06c0b724b1 /source/build/smb_build/input.pm | |
parent | db175040b482bce4fb693528837b5176ed95617f (diff) | |
download | samba-66d5a223b7052e0c2b5379ed6ced7c0d559f4a05.tar.gz samba-66d5a223b7052e0c2b5379ed6ced7c0d559f4a05.tar.xz samba-66d5a223b7052e0c2b5379ed6ced7c0d559f4a05.zip |
r6589: Make the library versioning options for building a shared library optional.
This will allow us to build unversioned libraries suitable for loading
using dlopen() i.e for the swig wrappers.
Diffstat (limited to 'source/build/smb_build/input.pm')
-rw-r--r-- | source/build/smb_build/input.pm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/build/smb_build/input.pm b/source/build/smb_build/input.pm index c574b5d4a55..6978c540e44 100644 --- a/source/build/smb_build/input.pm +++ b/source/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($$) |