summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-27 15:08:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-27 15:08:44 +0000
commit6adc205d15ea0f697a9972caeb060637a878bba2 (patch)
tree95d0226e01ad452d460aa2dd02d4ecaace372239 /Makefile
parent203b2b6f21764f4535bed9779ea7e2cbeb6e43cb (diff)
downloads6-linux-init-6adc205d15ea0f697a9972caeb060637a878bba2.tar.xz
Fix shared libs installation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f376052..3b5887b 100644
--- a/Makefile
+++ b/Makefile
@@ -100,17 +100,13 @@ global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so.xyzzy=$(DESTDIR)$(sproo
$(DESTDIR)$(sproot)/command/%: $(DESTDIR)$(home)/command/%
exec $(INSTALL) -D -l ..$(subst $(sproot),,$(exthome))/command/$(<F) $@
-$(DESTDIR)$(sproot)/library.so/lib%.so.$(version_M): $(DESTDIR)$(dynlibdir)/lib%.so.$(version_M)
- exec $(INSTALL) -D -l ..$(subst $(sproot),,$(exthome))/library.so/$(<F) $@
-
.PHONY: update global-links
endif
-$(DESTDIR)$(dynlibdir)/lib%.so: lib%.so.xyzzy
+$(DESTDIR)$(dynlibdir)/lib%.so $(DESTDIR)$(dynlibdir)/lib%.so.$(version_M): lib%.so.xyzzy
$(INSTALL) -D -m 755 $< $@.$(version) && \
- $(INSTALL) -l $(@F).$(version) $@.$(version_m) && \
- $(INSTALL) -l $(@F).$(version_m) $@.$(version_M) && \
+ $(INSTALL) -l $(@F).$(version) $@.$(version_M) && \
exec $(INSTALL) -l $(@F).$(version_M) $@
$(DESTDIR)$(libexecdir)/% $(DESTDIR)$(bindir)/%: % package/modes