use symlink rather than bogus linker script for libc.so
authorRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 18:02:47 +0000 (14:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 18:02:47 +0000 (14:02 -0400)
the linker script caused a bogus DT_NEEDED entry

Makefile

index 277aa00a420fa645f782bd9fa81245583cc30a66..ff3d97781ca2e3887edbbee216425bc649342dd9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,8 +107,8 @@ $(DESTDIR)$(includedir)/%: include/%
 $(DESTDIR)/lib/ld-musl-$(ARCH).so.1: lib/ld-musl-$(ARCH).so.1
        install -D -m 755 $< $@
 
-$(DESTDIR)$(libdir)/libc.so: $(DESTDIR)/lib/ld-musl-$(ARCH).so.1
-       echo 'GROUP ( /lib/ld-musl-$(ARCH).so.1 )' > $@
+$(DESTDIR)$(libdir)/libc.so: lib/ld-musl-$(ARCH).so.1
+       ln -sf /lib/ld-musl-$(ARCH).so.1 $@
 
 .PRECIOUS: $(CRT_LIBS:lib/%=crt/%)