In platform.txt, the recipe for combining the elf file is incorrect. It should be placed before the linker flags for other static libraries like below.
Background:
In order for the arduino-builder to be able to use precompiled libs, the ldflags are loaded into compiler.c.elf.extra_flags (as per @facchinm 's commits in March 2017).
As per ld conventions, one should list the linker flags at the end. This stackoverflow issue highlights a case.
In platform.txt, the recipe for combining the elf file is incorrect. It should be placed before the linker flags for other static libraries like below.
Background: In order for the arduino-builder to be able to use precompiled libs, the ldflags are loaded into compiler.c.elf.extra_flags (as per @facchinm 's commits in March 2017).
As per
ld
conventions, one should list the linker flags at the end. This stackoverflow issue highlights a case.