  #
  # Makefile for musl (requires GNU make)
  #
-@@ -34,8 +41,8 @@
+@@ -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

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

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