mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
This reverts commit 9b271b2bfd
.
Due to `gcc` seemingly mis-compiling the SH4 interpreter and crashing Naomi games.
30 lines
769 B
Diff
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
|