aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-17 10:00:23 +0000
committerRoland McGrath <roland@gnu.org>1995-12-17 10:00:23 +0000
commit102800e09dd56055f0e1a6f6868bfa5ac87d9459 (patch)
tree329f55611d2fec8220c9253d94f94b6e703a47c4 /Makerules
parent293e360a253166ba57b1b4ae245b2f73043d8d4b (diff)
downloadglibc-102800e09dd56055f0e1a6f6868bfa5ac87d9459.zip
glibc-102800e09dd56055f0e1a6f6868bfa5ac87d9459.tar.gz
glibc-102800e09dd56055f0e1a6f6868bfa5ac87d9459.tar.bz2
Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/libc-951217
* Makerules: Use $(do-install-so) for installing shared objects. (do-install-so): New canned sequence. Make a symlink LIB.so after installing LIB.so.VERSION. * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makerules b/Makerules
index 32dacce..530b1ac 100644
--- a/Makerules
+++ b/Makerules
@@ -482,14 +482,21 @@ install-lib-nosubdir: $(foreach so,$(install-lib.so),\
install: $(slibdir)/libc.so$(libc.so-version)
$(slibdir)/lib$(libprefix)c.so$(libc.so-version): $(common-objpfx)libc.so
- $(do-install-program)
+ $(do-install-so)
+
+define do-install-so
+$(do-install-program)
+$(patsubst %,ln -s -f $(@F) $(@D)/$(patsubst %$*.so,%,$(<F))$(libprefix)$*.so,\
+ $(filter-out %.so,$@))
+endef
-$(foreach v,$(sort $(foreach so,$(install-lib.so),.so$($(so)-version))),\
+so-versions := $(sort $(foreach so,$(install-lib.so),.so$($(so)-version)))
+$(foreach v,$(so-versions),\
$(libdir)/lib$(libprefix)%$v): $(common-objpfx)lib%.so
- $(do-install-program)
-$(foreach v,$(sort $(foreach so,$(install-lib.so),.so$($(so)-version))),\
+ $(do-install-so)
+$(foreach v,$(so-versions),\
$(libdir)/$(libprefix)%$v): $(common-objpfx)%.so
- $(do-install-program)
+ $(do-install-so)
endif
ifdef install-bin