Merge pull request #603 from dinau/fix_issue_590

Tools: Toolchain - GCC_CR fixed issue 590 (use nanolibs)
pull/606/head
Martin Kojtal 2014-10-27 00:59:23 -07:00
commit 647d05153e
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ class GCC_CR(GCC):
self.cc += additional_compiler_flags
self.cppc += additional_compiler_flags
# Use latest gcc nanolib
self.ld.append("--specs=nano.specs")
if target.name in ["LPC1768", "LPC4088", "LPC4330", "UBLOX_C027", "LPC2368"]:
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
self.ld += ["-nostdlib"]