Skip to content

Commit

Permalink
pass --specs=nano.specs for compile as well as link
Browse files Browse the repository at this point in the history
  • Loading branch information
aegean-odyssey committed Jan 20, 2021
1 parent 09de9d7 commit 00934d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ $(PRJ_OBJS) $(PRJ_DEPS) : CFLAGS += -include ${PRJ_INCLUDE_H}
LDFLAGS += -L${CMSIS}/Lib/GCC
LDLIBS += -larm_cortexM0l_math

CFLAGS += ${DEFINES} $(foreach i,$(select),${${i}})
CFLAGS += --specs=nano.specs ${DEFINES} $(foreach i,$(select),${${i}})
CPPFLAGS += -fsingle-precision-constant -fmerge-all-constants
CFLAGS += -Os -fdata-sections -ffunction-sections -flto $(INCLUDE)
CXXFLAGS += $(CFLAGS) -fno-exceptions -fno-rtti
LDFLAGS += -specs=nano.specs -u _printf_float -Wl,--gc-sections -flto
LDFLAGS += --specs=nano.specs -u _printf_float -Wl,--gc-sections -flto
ASFLAGS += -I${DEVICE}/Include


Expand Down

0 comments on commit 00934d8

Please sign in to comment.