use soname in ld-musl.so to prevent filename appearing in DT_NEEDEDs
authorRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 22:32:30 +0000 (18:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 22:32:30 +0000 (18:32 -0400)
Makefile

index ff3d97781ca2e3887edbbee216425bc649342dd9..7185b83c5ca35bad9e882e39de333f4725eba7ae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ include/bits/alltypes.h: include/bits/alltypes.h.sh
        $(CC) $(CFLAGS) $(INC) $(PIC) -c -o $@ $<
 
 lib/ld-musl-$(ARCH).so.1: $(LOBJS)
-       $(CC) $(LDFLAGS) -o $@ $(LOBJS) -lgcc
+       $(CC) $(LDFLAGS) -Wl,-soname=libc.so.1 -o $@ $(LOBJS) -lgcc
        $(OBJCOPY) --weaken $@
 
 lib/libc.a: $(OBJS)