unix/Makefile: Always enable -f*-sections regardless of DEBUG setting.
This commit is contained in:
parent
aa18ab7db2
commit
feed69aa5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue