From 6caecad2bc4e8b591efeb34f7509fffd8501577d Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 20 Oct 2017 11:12:02 -0700 Subject: [PATCH] [WebAssembly] Fix 'make install' --- Makefile | 2 +- configure | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc6550a5..0e63f07b 100644 --- a/Makefile +++ b/Makefile @@ -67,11 +67,11 @@ else CRT_LIBS = lib/crt1.o lib/Scrt1.o lib/rcrt1.o lib/crti.o lib/crtn.o endif STATIC_LIBS = lib/libc.a -SHARED_LIBS = lib/libc.so TOOL_LIBS = lib/musl-gcc.specs ifeq ($(ARCH),wasm32) ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS) else +SHARED_LIBS = lib/libc.so ALL_LIBS = $(CRT_LIBS) $(STATIC_LIBS) $(SHARED_LIBS) $(EMPTY_LIBS) $(TOOL_LIBS) endif ALL_TOOLS = obj/musl-gcc diff --git a/configure b/configure index 2d7ea30e..7b7dda23 100755 --- a/configure +++ b/configure @@ -309,6 +309,7 @@ mips*) ARCH=mips ;; microblaze*) ARCH=microblaze ;; or1k*) ARCH=or1k ;; powerpc*) ARCH=powerpc ;; +wasm*) ARCH=wasm32 ;; sh[1-9bel-]*|sh|superh*) ARCH=sh ;; unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;; *) fail "$0: unknown or unsupported target \"$target\"" ;;