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 aa5aee8..7ac58d4 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),)