mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 05:00:34 +08:00
LPC11C24: Using --specs=nano.specs (link with small newlib)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user