use soname in ld-musl.so to prevent filename appearing in DT_NEEDEDs

This commit is contained in:
Rich Felker 2011-06-24 18:32:30 -04:00
parent a654b0243b
commit e0b0ff1598

View File

@ -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)