RetroPie-Setup/scriptmodules/libretrocores/lr-flycast/01_flags_fix.diff
cmitu 517e1b6412 Revert "lr-flycast: update to switch to upstream project"
This reverts commit 9b271b2bfd.

Due to `gcc` seemingly mis-compiling the SH4 interpreter and crashing Naomi games.
2022-01-12 18:04:19 +00:00

30 lines
769 B
Diff

diff --git a/Makefile b/Makefile
index 2c477b4d..92a67b62 100644
--- a/Makefile
+++ b/Makefile
@@ -44,8 +44,6 @@ LDFLAGS :=
LDFLAGS_END :=
INCFLAGS :=
LIBS :=
-CFLAGS :=
-CXXFLAGS :=
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
@@ -208,6 +206,7 @@ else ifneq (,$(findstring rpi,$(platform)))
endif
CORE_DEFINES += -DLOW_END
endif
+ LDFLAGS += $(CFLAGS)
# Classic Platforms #####################
# Platform affix = classic_<ISA>_<µARCH>
@@ -894,7 +893,7 @@ else
else ifneq (,$(findstring classic_arm,$(platform)))
OPTFLAGS := -O2
else ifeq (,$(findstring classic_arm,$(platform)))
- OPTFLAGS := -O3
+ OPTFLAGS := -O2
endif
CORE_DEFINES += -DNDEBUG