-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LR mame2003 plus not building with LTO on OGA
- Loading branch information
Showing
1 changed file
with
11 additions
and
34 deletions.
There are no files selected for viewing
45 changes: 11 additions & 34 deletions
45
package/batocera/emulators/retroarch/libretro/libretro-mame2003-plus/000-makefile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,11 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 6956259..9f28a3c 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -229,6 +229,29 @@ else ifeq ($(platform), classic_armv7_a7) | ||
endif | ||
####################################### | ||
|
||
+# (armv8 a35, hard point, neon based) ### | ||
+# PlayStation Classic | ||
+else ifeq ($(platform), classic_armv8_a35) | ||
+ TARGET := $(TARGET_NAME)_libretro.so | ||
+ fpic := -fPIC | ||
+ LDFLAGS := $(fpic) -shared -Wl,--version-script=link.T | ||
+ CFLAGS += -Ofast \ | ||
+ -fuse-linker-plugin \ | ||
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \ | ||
+ -fmerge-all-constants -ffast-math -funroll-all-loops \ | ||
+ -marm -mcpu=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard | ||
+ CXXFLAGS += $(CFLAGS) | ||
+ CPPFLAGS += $(CFLAGS) | ||
+ ASFLAGS += $(CFLAGS) | ||
+ HAVE_NEON = 1 | ||
+ ARCH = arm | ||
+ BUILTIN_GPU = neon | ||
+ USE_DYNAREC = 1 | ||
+ CPU_ARCH := arm | ||
+ ARM = 1 | ||
+ LDFLAGS += -marm -mcpu=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard -Ofast -flto -fuse-linker-plugin | ||
+####################################### | ||
+ | ||
# generic armhf######################## | ||
else ifeq ($(platform), armhf) | ||
CFLAGS += $(fpic) | ||
--- a/Makefile 2020-08-10 13:00:41.230212722 +0200 | ||
+++ b/Makefile 2020-08-10 13:00:52.122427610 +0200 | ||
@@ -246,7 +246,7 @@ | ||
fpic := -fPIC | ||
LDFLAGS += $(fpic) -shared -Wl,--version-script=link.T | ||
CFLAGS += -Ofast \ | ||
- -flto=4 -fwhole-program -fuse-linker-plugin \ | ||
+ -fwhole-program -fuse-linker-plugin \ | ||
-fdata-sections -ffunction-sections -Wl,--gc-sections \ | ||
-fno-stack-protector -fno-ident -fomit-frame-pointer \ | ||
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \ |