diff options
author | Tim Potter <tpot@samba.org> | 2005-05-03 01:48:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:28 -0500 |
commit | ac6c2f44cdb7658720c2ea1a5715802ce1589afc (patch) | |
tree | ef7ddbd41e0a15ee94bc2732012fa64734bf4c08 /source4/build/smb_build | |
parent | f551a6ee235f94c3a174b5f4f490a5c6bbd8afaf (diff) | |
download | samba-ac6c2f44cdb7658720c2ea1a5715802ce1589afc.tar.gz samba-ac6c2f44cdb7658720c2ea1a5715802ce1589afc.tar.bz2 samba-ac6c2f44cdb7658720c2ea1a5715802ce1589afc.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.
(This used to be commit 3feac34d84fa7cac646a90708f399420178c7313)
Diffstat (limited to 'source4/build/smb_build')
-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($$) |