Skip to content

Commit 67c0726

Browse files
authored
Merge pull request #220 from misson20000/nsw-dynamic
NSW: dynamic cores
2 parents b0375d3 + f5beb2d commit 67c0726

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Makefile.libretro

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ else ifeq ($(platform), wiiu)
269269

270270
# Nintendo Switch (libtransistor)
271271
else ifeq ($(platform), switch)
272-
EXT=a
273-
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
274-
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
275-
STATIC_LINKING=1
272+
EXT=so
273+
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
274+
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
275+
LDFLAGS = $(LD_SHARED_LIBRARY_FLAGS) -ltransistor.lib.nro $(LIBTRANSISTOR_LIB_LDFLAGS) -E
276276
EXTERNAL_ZLIB=1
277277

278278

@@ -605,6 +605,10 @@ ifeq ($(STATIC_LINKING),1)
605605
else
606606
LD = link.exe
607607
endif
608+
else ifeq ($(platform), switch)
609+
OBJOUT = -o
610+
LINKOUT = -o
611+
# libtransistor.mk sets LD for us
608612
else
609613
OBJOUT = -o
610614
LINKOUT = -o

0 commit comments

Comments
 (0)