use emar instead of em++/emcc for archiving

This commit is contained in:
Joseph C. Osborn 2023-10-10 11:51:55 -07:00
parent dce703f241
commit edc5010977

View File

@ -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)