distribution/packages/emulators/libretro/stella-2014-lr/patches/stella-2014-01-makefile.patch
2023-03-17 21:06:43 +00:00

19 lines
530 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,16 @@
fpic += -mmacosx-version-min=10.7
endif
+# EmuELEC for Amlogic devices
+else ifeq ($(platform), emuelec-arm64)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
+ CXXFLAGS += -lpthread -DARM64
+ LDFLAGS += -lpthread -static-libgcc -lstdc++
+ ARCH = arm64
+ USE_DYNAREC = 1
+
# iOS
else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib