Commit eaa33f91 authored by misson20000's avatar misson20000
Browse files

NSW: dynamic cores

parent fc2457e0
......@@ -375,11 +375,10 @@ else ifeq ($(platform), msvc)
# Nintendo Switch (libtransistor)
else ifeq ($(platform), switch)
EXT=a
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
STATIC_LINKING=1
STATIC_LINKING_LINK=1
EXT=so
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
LDFLAGS = $(LD_SHARED_LIBRARY_FLAGS) -ltransistor.lib.nro $(LIBTRANSISTOR_LIB_LDFLAGS) -E
# Windows MSVC 2003 Xbox 1
else ifeq ($(platform), xbox1_msvc2003)
......@@ -457,9 +456,11 @@ ifeq ($(STATIC_LINKING),1)
else
LD = link.exe
endif
else ifeq ($(platform), switch)
# libtransistor.mk sets LD for us
else
OBJOUT = -o
LINKOUT = -o
LINKOUT = -o
LD = $(CC)
endif
......@@ -481,7 +482,8 @@ else
$(AR) rcs $@ $(OBJECTS)
endif
else
$(CC) $(fpic) $(SHARED) $(INCFLAGS) $(LDFLAGS) $(OBJOUT)$@ $(OBJECTS) $(LIBM)
echo ld $(LD)
$(LD) $(fpic) $(SHARED) $(LDFLAGS) $(OBJOUT)$@ $(OBJECTS) $(LIBM)
endif
%.o: %.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment