From e3d35a4790900bb0d771cd3639c4eff4e57dc17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 11 May 2021 16:19:42 +0700 Subject: [PATCH] Fix emscripten linking --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5fba77c..ff3b226 100644 --- a/Makefile +++ b/Makefile @@ -665,9 +665,7 @@ OBJECTS := $(SOURCES_CXX:.cpp=.o) $(SOURCES_C:.c=.o) all: $(TARGET) $(TARGET): $(OBJECTS) -ifeq ($(platform), emscripten) - $(CXX) $(CXXFLAGS) $(OBJOUT)$@ $^ -else ifeq ($(STATIC_LINKING), 1) +ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $(OBJECTS) else $(LD) $(LINKOUT)$@ $^ $(LDFLAGS) $(LIBS)