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 277aa00..ff3d977 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/%)