From 4c2ad0f54545cf0bfd5c29a1b0a7e754f65edbb1 Mon Sep 17 00:00:00 2001 From: robertfoss Date: Thu, 14 May 2015 11:27:43 -0400 Subject: [PATCH] Add -Os flag to release and debug builds To fit the build on boards with 512K of flash, build using -Os flag. --- app/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Makefile b/app/Makefile index 4d04d7f5..a1c0d66a 100644 --- a/app/Makefile +++ b/app/Makefile @@ -53,11 +53,11 @@ TARGET_LDFLAGS = \ --text-section-literals ifeq ($(FLAVOR),debug) - TARGET_LDFLAGS += -g -O2 + TARGET_LDFLAGS += -g -Os endif ifeq ($(FLAVOR),release) - TARGET_LDFLAGS += -g -O0 + TARGET_LDFLAGS += -Os endif LD_FILE = $(LDDIR)/eagle.app.v6.ld