aboutsummaryrefslogtreecommitdiff
path: root/stm/Makefile
diff options
context:
space:
mode:
authorDamien George2014-01-14 23:48:11 +0000
committerDamien George2014-01-14 23:48:11 +0000
commit0367ad6214b0923d9e01ec758e1e10bc1a482f4f (patch)
tree51ce8583ac77ac8966212a7d49847bc3f1b02756 /stm/Makefile
parent36b35c041b3e594a70faa44431aa34713f2ebb4e (diff)
stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.
Thanks to Dave Hylands for this.
Diffstat (limited to 'stm/Makefile')
-rw-r--r--stm/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/Makefile b/stm/Makefile
index 03e0e261b..d4dbd960a 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -33,6 +33,7 @@ CFLAGS += -Os -DNDEBUG
endif
LDFLAGS = --nostdlib -T stm32f405.ld
+LIBS = $(shell $(CC) -print-libgcc-file-name)
SRC_C = \
main.c \
@@ -145,7 +146,7 @@ $(BUILD)/flash1.bin: $(BUILD)/flash.elf
$(BUILD)/flash.elf: $(OBJ)
$(ECHO) "LINK $@"
- $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ)
+ $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
$(Q)$(SIZE) $@
$(BUILD)/%.o: %.s