Browse Source

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

Rich Felker 13 years ago
parent
commit
e0b0ff1598
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
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)