From e153a8099e9a187e6bcac6507ed4b1ddfe7cb764 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 13 Mar 2006 16:32:44 +0000 Subject: r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters: - VERSION: should contain the current version. Will be made part of the filename. - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library. Fix sonames and use them on platforms that support them Remove symlinking code. ldconfig will take care of creating the symlinks now that we set the soname. (This used to be commit 7871b07e21c85c63d0ecac4c31b98dc112d18af5) --- source4/build/smb_build/input.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source4/build/smb_build/input.pm') diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index 73157758c0..f83e04f0c4 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -88,8 +88,13 @@ sub check_library($$$) $lib->{OUTPUT_TYPE} = $default_ot; - unless (defined($lib->{MAJOR_VERSION})) { - print "$lib->{NAME}: Please specify MAJOR_VERSION\n"; + if (defined($lib->{VERSION}) and not defined($lib->{SO_VERSION})) { + print "$lib->{NAME}: Please specify SO_VERSION when specifying VERSION\n"; + return; + } + + if (defined($lib->{SO_VERSION}) and not defined($lib->{VERSION})) { + print "$lib->{NAME}: Please specify VERSION when specifying SO_VERSION\n"; return; } -- cgit