From 00934d8e30a833c35bd1df801fb79300196e1b53 Mon Sep 17 00:00:00 2001 From: Aegean Odyssey <57586704+aegean-odyssey@users.noreply.github.com> Date: Wed, 20 Jan 2021 01:12:35 +0000 Subject: [PATCH] pass --specs=nano.specs for compile as well as link --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d51078bd..88267757 100644 --- a/Makefile +++ b/Makefile @@ -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