summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-11 17:42:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-11 17:42:56 +0000
commit6d18d9f3bfa3beb8a03be1789de63c70ffd29b13 (patch)
tree60bed58e7de507d466915d0a88f386d2968b9010 /Makefile
parentcd44ac2b6b350bf66bc575053c7a7e7622c91e9c (diff)
downloadskalibs-6d18d9f3bfa3beb8a03be1789de63c70ffd29b13.tar.xz
Fix make global-links with nonempty sproot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5178906..d6ebbba 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ update:
global-links: $(DESTDIR)$(exthome) $(SHARED_LIBS:lib%.so=$(DESTDIR)$(sproot)/library.so/lib%.so)
$(DESTDIR)$(sproot)/library.so/lib%.so: $(DESTDIR)$(home)/library.so/lib%.so
- exec $(INSTALL) -D -l ..$(exthome)/library.so/$(<F) $@
+ exec $(INSTALL) -D -l ..$(subst $(sproot),,$(exthome))/library.so/$(<F) $@
.PHONY: update global-links