From a392f5c61ce835955973768d43a2a4bb6ade67db Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 15 Apr 2014 22:17:42 +0400 Subject: [PATCH] LPC11C24: Using --specs=nano.specs (link with small newlib) --- libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/Makefile b/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/Makefile index ece05521b3..c5d3b165c7 100644 --- a/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/Makefile +++ b/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24/Makefile @@ -59,6 +59,9 @@ CPPFLAGS = $(C_CPP_FLAGS) -pedantic -std=c++11 -fno-rtti -fno-threadsafe-statics LDFLAGS = $(FLAGS) -nodefaultlibs -lc -lgcc -nostartfiles -Tlpc11c24.ld -Xlinker --gc-sections \ -Wl,-Map,$(BUILDDIR)/output.map +# Link with nano newlib. Other toolchains may not support this option, so it can be safely removed. +LDFLAGS += --specs=nano.specs + COBJ = $(addprefix $(OBJDIR)/, $(notdir $(CSRC:.c=.o))) CPPOBJ = $(addprefix $(OBJDIR)/, $(notdir $(CPPSRC:.cpp=.o))) OBJ = $(COBJ) $(CPPOBJ)