Makefile fix: "-Os" was overridden by "-O2"

This commit is contained in:
cal 2015-05-01 17:39:47 +02:00
parent 32e9ac204a
commit 6f31a20240
1 changed files with 7 additions and 1 deletions

View File

@ -103,9 +103,15 @@ OIMAGES := $(GEN_IMAGES:%=$(IMAGEODIR)/%)
BINODIR := $(ODIR)/$(TARGET)/$(FLAVOR)/bin
OBINS := $(GEN_BINS:%=$(BINODIR)/%)
#
# Note:
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
# If you add global optimize options like "-O2" here
# they will override "-Os" defined above.
# "-Os" should be used to reduce code size
#
CCFLAGS += \
-g \
-O2 \
-Wpointer-arith \
-Wundef \
-Werror \