define Host/Install
$(call Host/SetToolchainInfo)
+$(MAKE) $(HOST_JOBS) $(MUSL_MAKEOPTS) DESTDIR="$(TOOLCHAIN_DIR)/" install
+ $(CP) $(HOST_BUILD_DIR)/lib/libc_so.a $(TOOLCHAIN_DIR)/lib/
$(CP) ./include $(TOOLCHAIN_DIR)/
endef
--- /dev/null
+--- a/Makefile
++++ b/Makefile
+@@ -66,7 +66,7 @@ CRT_LIBS = $(addprefix lib/,$(notdir $(C
+ STATIC_LIBS = lib/libc.a
+ SHARED_LIBS = lib/libc.so
+ TOOL_LIBS = lib/musl-gcc.specs
+-ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS) lib/libssp_nonshared.a
++ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS) lib/libssp_nonshared.a lib/libc_so.a
+ ALL_TOOLS = obj/musl-gcc
+
+ WRAPCC_GCC = gcc
+@@ -168,6 +168,11 @@ lib/libc.so: $(LOBJS) $(LDSO_OBJS)
+ $(CC) $(CFLAGS_ALL) $(LDFLAGS_ALL) -nostdlib -shared \
+ -Wl,-e,_dlstart -o $@ $(LOBJS) $(LDSO_OBJS) $(LIBCC)
+
++lib/libc_so.a: $(LOBJS) $(LDSO_OBJS)
++ rm -f $@
++ $(AR) rc $@ $(LOBJS) $(LDSO_OBJS)
++ $(RANLIB) $@
++
+ lib/libc.a: $(AOBJS)
+ rm -f $@
+ $(AR) rc $@ $(AOBJS)