  ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS)
  ALL_TOOLS = tools/musl-gcc
  
-@@ -77,11 +84,11 @@
+@@ -77,11 +85,11 @@
  %.lo: %.c $(GENH)
  	$(CC) $(CFLAGS) $(INC) $(PIC) -c -o $@ $<
  

 #ifdef __cplusplus
--- Makefile
+++ Makefile
@@ -1,3 +1,10 @@
+LIBNAME := c
+LIBNAME := c
+LIBNAME := c

 #
 # Makefile for musl (requires GNU make)
 #
@@ -34,8 +42,8 @@
 EMPTY_LIB_NAMES = m rt pthread crypt util xnet resolv dl
 EMPTY_LIBS = $(EMPTY_LIB_NAMES:%=lib/lib%.a)
 CRT_LIBS = lib/crt1.o lib/crti.o lib/crtn.o
