summaryrefslogtreecommitdiff
path: root/defines.mk
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-06-14 22:41:57 +0200
committerChristian Pointner <equinox@spreadspace.org>2016-06-14 22:41:57 +0200
commitcaff976a86659b8bd14d7f99e1dbf173cbcc47cc (patch)
tree2e46259b737408884f586434e4b51eca7500cd88 /defines.mk
parentremove accidentially added LDFLAGS from usb-spi example (diff)
added option for printf with float support
Diffstat (limited to 'defines.mk')
-rw-r--r--defines.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/defines.mk b/defines.mk
index fd57edd..be0703e 100644
--- a/defines.mk
+++ b/defines.mk
@@ -268,3 +268,6 @@ endif
## Linker flags
LDFLAGS = -mmcu=$(MCU)
LDFLAGS += -Wl,--gc-sections
+ifdef PRINTF_HAS_FLOAT
+LDFLAGS += -Wl,-u,vfprintf -lprintf_flt -lm
+endif