mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Makefile: switch to newlib-nano
This makes the binary considerably smaller (73852 text with gcc 4.7.3, 71620 text with gcc 4.9.0 from TNT). Build-tested only. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
parent
941b42a269
commit
900f872058
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -367,6 +367,8 @@ ASFLAGS = $(ARCH_FLAGS) \
|
||||||
# XXX Map/crossref output?
|
# XXX Map/crossref output?
|
||||||
LDFLAGS = -lm \
|
LDFLAGS = -lm \
|
||||||
-nostartfiles \
|
-nostartfiles \
|
||||||
|
--specs=nano.specs \
|
||||||
|
-lnosys \
|
||||||
$(ARCH_FLAGS) \
|
$(ARCH_FLAGS) \
|
||||||
$(LTO_FLAGS) \
|
$(LTO_FLAGS) \
|
||||||
$(DEBUG_FLAGS) \
|
$(DEBUG_FLAGS) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue