diff --git a/Makefile b/Makefile index ff09da62..4cb6ce17 100644 --- a/Makefile +++ b/Makefile @@ -363,6 +363,8 @@ else ifneq (,$(findstring windows_msvc2017,$(platform))) else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_$(platform).bc STATIC_LINKING = 1 + CFLAGS += -D__linux__ + CXXFLAGS += -D__linux__ # Windows MSVC 2005 x86 else ifeq ($(platform), windows_msvc2005_x86) @@ -491,9 +493,7 @@ else endif $(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)