about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)