Add missing build flag to reduce code size for atmelsam // Resolve #599

This commit is contained in:
Valeriy Koval
2016-03-29 13:05:06 +03:00
parent dbeea7ec4f
commit b5366f9d2f

View File

@ -95,6 +95,10 @@ else:
) )
env.Append( env.Append(
CXXFLAGS=[
"-fno-threadsafe-statics"
],
CPPDEFINES=[ CPPDEFINES=[
"USBCON", "USBCON",
'USB_MANUFACTURER="PlatformIO"' 'USB_MANUFACTURER="PlatformIO"'
@ -124,10 +128,6 @@ elif "zero" in env.subst("$BOARD"):
"--param", "max-inline-insns-single=500" "--param", "max-inline-insns-single=500"
], ],
CXXFLAGS=[
"-fno-threadsafe-statics"
],
LINKFLAGS=[ LINKFLAGS=[
"--specs=nosys.specs", "--specs=nosys.specs",
"--specs=nano.specs" "--specs=nano.specs"