From a4f750f5f590cf919f2646a4e94e77ce01766de7 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Sat, 23 Jan 2016 14:22:35 -0800 Subject: [PATCH] Added ld flags for link time optimizations and separating data sections --- libctru/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libctru/Makefile b/libctru/Makefile index df51cae..d05c018 100644 --- a/libctru/Makefile +++ b/libctru/Makefile @@ -42,9 +42,9 @@ INCLUDES := include #--------------------------------------------------------------------------------- ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -CFLAGS := -g -Wall -Werror -O2 -mword-relocations \ - -ffunction-sections -fno-strict-aliasing \ - -fomit-frame-pointer \ +CFLAGS := -g -Wall -Werror -Os -mword-relocations \ + -flto -ffunction-sections -fdata-sections \ + -fno-strict-aliasing -fomit-frame-pointer \ $(ARCH) CFLAGS += $(INCLUDE) -DARM11 -D_3DS