aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCorjan85 <34415116+Corjan85@users.noreply.github.com>2019-09-16 13:47:22 +0200
committerAlexander Entinger <consulting@lxrobotics.com>2019-09-16 13:47:22 +0200
commit41f15a1359943ccb3ec9666a2e28a2d15e9581fc (patch)
tree462885e3da3f7d5db24c162f4f5d814f37f9b8d0 /platform.txt
parent3883e49b385a6745e2693f5b796a20d9ced0483b (diff)
Changed linking order, so precompiled libraries can use the Arduino c… (#52)
* Changed linking order, so precompiled libraries can use the Arduino code functions. * Added 'compiler.libraries.ldflags', reverted object order in previous commit
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 cb48698..9d18d7b 100644
--- a/platform.txt
+++ b/platform.txt
@@ -65,7 +65,7 @@ archive_file_path={build.path}/{archive_file}
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
## Combine gc-sections, archives, and objects
-recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm
+recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} {compiler.libraries.ldflags} "{build.path}/{archive_file}" "-L{build.path}" -lm
## Create output files (.eep and .hex)
recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"