This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
master - build: allow libs to have indipendent sonames
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 17 Nov 2008 08:28:02 +0000 (UTC)
- Subject: master - build: allow libs to have indipendent sonames
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=0ddc3564bf2a6a23932515ffad7ea7bcf83dd191
Commit: 0ddc3564bf2a6a23932515ffad7ea7bcf83dd191
Parent: eae417ba2c1a2bfa979c08834f2df4eb4fb2ad14
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon Nov 17 09:27:01 2008 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon Nov 17 09:27:01 2008 +0100
build: allow libs to have indipendent sonames
by defining SOMAJOR and/or SOMINOR within the library Makefile, we can
now override global setting.
This can be useful if we need to bump the API/ABI of one single library.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
configure | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index e98ddc2..18f947f 100755
--- a/configure
+++ b/configure
@@ -835,8 +835,12 @@ if ((not defined($somajor)) || (not defined($sominor)) || (not defined($release_
}
}
+print OFILE "ifndef SOMAJOR\n";
print OFILE "SOMAJOR = $somajor\n";
+print OFILE "endif\n";
+print OFILE "ifndef SOMINOR\n";
print OFILE "SOMINOR = $sominor\n";
+print OFILE "endif\n";
print OFILE "RELEASE_VERSION = $release_version\n";
print OFILE "CFLAGS += -DRELEASE_VERSION=\\\"$release_version\\\"\n";