aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-17 18:59:42 +0000
committerRoland McGrath <roland@gnu.org>1996-07-17 18:59:42 +0000
commit4de1d5977c0e63cc7517308bbce9157b7903d757 (patch)
tree493e9d665f657b222ecc36cf61fec2662fbdc009
parent8a5776e6fe2133e8645fbe1ed7094264b7dbd06a (diff)
downloadglibc-4de1d5977c0e63cc7517308bbce9157b7903d757.zip
glibc-4de1d5977c0e63cc7517308bbce9157b7903d757.tar.gz
glibc-4de1d5977c0e63cc7517308bbce9157b7903d757.tar.bz2
Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (soversions.mk): Move this target, include of it, and include of version.mk to ... * Makeconfig: ... here. (soversions.mk): Depend on Makeconfig instead of Makerules.
-rw-r--r--Makeconfig22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index c06604c..23dca2c 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -510,4 +510,26 @@ $(common-objpfx)version.mk: $(..)version.h $(..)Makeconfig
< $< > $@-new
mv -f $@-new $@
+ifeq (yes, $(build-shared))
+
+# Process the shlib-versions file, which tells us what shared library
+# version numbers to use when we install shared objects on this system.
+-include $(common-objpfx)soversions.mk
+$(common-objpfx)soversions.mk: $(..)shlib-versions $(..)Makeconfig \
+ $(common-objpfx)config.make
+ sed 's/#.*$$//' $< | while read conf versions; do \
+ test -n "$$versions" || continue; \
+ case '$(config-machine)-$(config-vendor)-$(config-os)' in $$conf)\
+ for v in $$versions; do \
+ lib="$${v%%=*}"; if eval "test -z \"\$$vers_lib$$lib\""; then \
+ eval vers_lib$${lib}=yes; \
+ echo $$lib.so-version=.$${v##$$lib=}; fi; \
+ done ;; esac; done > $@T
+ mv -f $@T $@
+
+# Get $(version) defined with the release version number.
+-include $(common-objpfx)version.mk
+
+endif # build-shared
+
endif # Makeconfig not yet included