From a1b4714da9b135a864ebe1b53b8bf4c67b8b18d5 Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 21 Oct 2021 00:19:07 +0000 Subject: Adds gme (Game Music Emu) core --- patches/gme/1000-trimui-build.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 patches/gme/1000-trimui-build.patch (limited to 'patches/gme/1000-trimui-build.patch') diff --git a/patches/gme/1000-trimui-build.patch b/patches/gme/1000-trimui-build.patch new file mode 100644 index 0000000..0c20db3 --- /dev/null +++ b/patches/gme/1000-trimui-build.patch @@ -0,0 +1,32 @@ +diff --git a/Makefile b/Makefile +index fa45fb3..9e20a41 100644 +--- a/Makefile ++++ b/Makefile +@@ -39,6 +39,7 @@ ifeq ($(platform), unix) + ifneq ($(findstring Haiku,$(shell uname -a)),) + LIBM := + endif ++ CFLAGS += -D_GNU_SOURCE + + # OS X + else ifeq ($(platform), osx) +@@ -214,6 +215,19 @@ else ifeq ($(platform), switch) + include $(LIBTRANSISTOR_HOME)/libtransistor.mk + STATIC_LINKING=1 + ++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 ++ CFLAGS += -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math -fno-PIC -flto -D_GNU_SOURCE ++ CXXFLAGS += -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math -fno-PIC -flto -D_GNU_SOURCE ++ LDFLAGS += -flto ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ + # ARM + else ifneq (,$(findstring armv,$(platform))) + TARGET := $(TARGET_NAME)_libretro.so -- cgit v1.2.3