[GCC_CR] fixed issue 590

Refer to:
https://github.com/mbedmicro/mbed/issues/590
pull/603/head
dinau 2014-10-26 00:51:05 +09:00
parent 2fe9871855
commit b4bea06cc3
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.cc += additional_compiler_flags
self.cppc += 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"] self.ld += ["-nostdlib"]