fix regression in creation of ldso symlink
authorRich Felker <dalias@aerifal.cx>
Sat, 31 Aug 2013 15:36:56 +0000 (11:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 31 Aug 2013 15:36:56 +0000 (11:36 -0400)
DESTDIR was wrongly included in the symlink contents.

Makefile

index aa5aee8f89794e3656abf19fe58a2526eb6dec5f..7ac58d486c3ca803f07223c50c68dd0a218d17ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -157,7 +157,7 @@ $(DESTDIR)$(includedir)/%: include/%
        $(INSTALL) -D -m 644 $< $@
 
 $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so
-       $(INSTALL) -D -l $< $@ || true
+       $(INSTALL) -D -l $(libdir)/libc.so $@ || true
 
 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),)