aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2016-07-25 14:56:35 +0200
committerMartino Facchin <m.facchin@arduino.cc>2016-07-25 14:56:35 +0200
commit4b0b11ca18a292d19d05335f9c21f6f10f3010d7 (patch)
tree86d1175e451c52d9f56fef7fb2c73d48b267fe97 /platform.txt
parent9868f513827df91c26cee143ef367b3d3a064073 (diff)
Move lto flags before -Wl to fix Mega2560 "relax" substitution
Diffstat (limited to 'platform.txt')
-rw-r--r--platform.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform.txt b/platform.txt
index 7bb2307..83cf12b 100644
--- a/platform.txt
+++ b/platform.txt
@@ -21,7 +21,7 @@ compiler.warning_flags.all=-Wall -Wextra
compiler.path={runtime.tools.avr-gcc.path}/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
-compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections -flto -fuse-linker-plugin
+compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp -flto
compiler.cpp.cmd=avr-g++