From: Rich Felker Date: Fri, 24 Jun 2011 22:32:30 +0000 (-0400) Subject: use soname in ld-musl.so to prevent filename appearing in DT_NEEDEDs X-Git-Tag: v0.7.11~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0b0ff1598ff747713631224a54e63af70761a71;p=oweals%2Fmusl.git use soname in ld-musl.so to prevent filename appearing in DT_NEEDEDs --- diff --git a/Makefile b/Makefile index ff3d9778..7185b83c 100644 --- 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)