Skip to content

Commit

Permalink
Fix LR mame2003 plus not building with LTO on OGA
Browse files Browse the repository at this point in the history
  • Loading branch information
rtissera committed Aug 10, 2020
1 parent 89332c6 commit bffe555
Showing 1 changed file with 11 additions and 34 deletions.
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 \

0 comments on commit bffe555

Please sign in to comment.