aboutsummaryrefslogtreecommitdiff
path: root/patches/quicknes/1000-trimui-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/quicknes/1000-trimui-build.patch')
-rw-r--r--patches/quicknes/1000-trimui-build.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/quicknes/1000-trimui-build.patch b/patches/quicknes/1000-trimui-build.patch
new file mode 100644
index 0000000..8cc40f9
--- /dev/null
+++ b/patches/quicknes/1000-trimui-build.patch
@@ -0,0 +1,25 @@
+diff --git a/Makefile b/Makefile
+index 2405fd3..a075991 100644
+--- a/Makefile
++++ b/Makefile
+@@ -383,6 +383,20 @@ else ifeq ($(platform), miyoo)
+ PLATFORM_DEFINES += -O3 -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math
+ CXXFLAGS += -fno-rtti -fno-exceptions
+
++# TRIMUI
++else ifeq ($(platform), trimui)
++ TARGET := $(TARGET_NAME)_libretro.so
++ CC = $(CROSS_COMPILE)gcc
++ CXX = $(CROSS_COMPILE)g++
++ AR = $(CROSS_COMPILE)ar
++ SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined
++ PLATFORM_DEFINES := -DNO_UNALIGNED_ACCESS
++ PLATFORM_DEFINES += -Ofast -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math -fno-PIC -flto
++ CXXFLAGS += -fno-rtti -fno-exceptions
++ ifeq (,$(DEBUG))
++ LDFLAGS += -s
++ endif
++
+ # Windows MSVC 2017 all architectures
+ else ifneq (,$(findstring windows_msvc2017,$(platform)))
+