unix/Makefile: Always enable -f*-sections regardless of DEBUG setting.

This commit is contained in:
Jim Mussared 2020-08-14 16:40:55 +10:00 committed by Damien George
parent aa18ab7db2
commit feed69aa5c
1 changed files with 3 additions and 1 deletions

View File

@ -47,10 +47,12 @@ ifdef DEBUG
COPT ?= -O0
else
COPT ?= -Os
COPT += -fdata-sections -ffunction-sections
COPT += -DNDEBUG
endif
# Remove unused sections.
COPT += -fdata-sections -ffunction-sections
# Always enable symbols -- They're occasionally useful, and don't make it into the
# final .bin/.hex/.dfu so the extra size doesn't matter.
CFLAGS += -g