From 78ca2bd297f59b617fb1d0241e9f32393aa9f1ca Mon Sep 17 00:00:00 2001 From: fincs Date: Tue, 10 Jan 2017 01:06:20 +0100 Subject: [PATCH] Add dead code elimination options --- nds/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nds/Makefile b/nds/Makefile index 1679b98..6ea0412 100644 --- a/nds/Makefile +++ b/nds/Makefile @@ -26,7 +26,8 @@ LIB := $(TOPDIR)/nds/lib #--------------------------------------------------------------------------------- ARCH := -mthumb -mthumb-interwork -CFLAGS := -g -Wall -O2\ +CFLAGS := -g -Wall -O2 \ + -ffunction-sections -fdata-sections \ -march=armv5te -mtune=arm946e-s -fomit-frame-pointer\ -ffast-math \ $(ARCH)