Skip to content

Commit 6fc23be

Browse files
authored
Merge pull request #101 from landret/ldflags_patch
Patch to allow use of precompiled libraries
2 parents f21b3ae + 71437e7 commit 6fc23be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ compiler.elf2hex.flags=-O ihex -R .eeprom
3434
compiler.elf2hex.bin.flags=-O binary -R .eeprom
3535
compiler.elf2hex.cmd=avr-objcopy
3636
compiler.ldflags=
37+
compiler.libraries.ldflags=
3738
compiler.size.cmd=avr-size
3839

3940
# This can be overridden in boards.txt
@@ -66,7 +67,7 @@ archive_file_path={build.path}/{archive_file}
6667
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
6768

6869
## Combine gc-sections, archives, and objects
69-
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 "-Wl,-Map,{build.path}/{build.project_name}.map"
70+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} {compiler.libraries.ldflags} "{build.path}/{archive_file}" "-L{build.path}" -lm "-Wl,-Map,{build.path}/{build.project_name}.map"
7071

7172
## Create output files (.eep and .hex)
7273
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"

0 commit comments

Comments
 (0)