mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
diff --git a/Makefile b/Makefile
|
|
index ef82d42..b3220b8 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -232,9 +232,15 @@ else ifeq ($(platform), miyoo)
|
|
TARGET := $(TARGET_NAME)_libretro.so
|
|
CC = /opt/miyoo/usr/bin/arm-linux-gcc
|
|
AR = /opt/miyoo/usr/bin/arm-linux-ar
|
|
- fpic := -fPIC
|
|
+ fpic := -fno-PIC
|
|
SHARED := -shared -Wl,--version-script=common/libretro-link.T
|
|
- CFLAGS += -DDINGUX -D_MIYOO -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s
|
|
+ CFLAGS += -DDINGUX -D_MIYOO -ffast-math -mcpu=arm926ej-s -Ofast -fdata-sections -ffunction-sections -fsingle-precision-constant -flto -DARM
|
|
+ CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections \
|
|
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
|
|
+ -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
|
+ -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
|
+ -fmerge-all-constants -fno-math-errno \
|
|
+ -marm
|
|
HAVE_NETWORKING=0
|
|
|
|
# Raspberry Pi 1
|
|
@@ -689,8 +695,8 @@ endif
|
|
CFLAGS += -DDEBUG
|
|
CXXFLAGS += -DDEBUG
|
|
else
|
|
- CFLAGS += -O2 -DNDEBUG
|
|
- CXXFLAGS += -O2 -DNDEBUG
|
|
+ CFLAGS += -O3 -DNDEBUG
|
|
+ CXXFLAGS += -O3 -DNDEBUG
|
|
endif
|
|
|
|
ifneq (,$(findstring msvc,$(platform)))
|