arduino-builder icon indicating copy to clipboard operation
arduino-builder copied to clipboard

dot_a_linkage causes compilation trouble

Open MCUdude opened this issue 6 years ago • 1 comments
trafficstars

See https://github.com/MCUdude/MightyCore/issues/135 for details.

In short terms, I'm experiencing build issues when a library (SPI and Wire in this case) has dot_a_linkage=true.

MCUdude avatar Apr 12 '19 17:04 MCUdude

@MCUdude @per1234 thanks for the extensive debugging of the issue on the other thread. The order of .o files is not defined and depends on the lib discovery order because it's normally a non issue. This line prevents the builder from knowing if the object is an archive or a .o, so we cannot reorder the list in a later stage.

I'll try to think about a workaround, but it looks the only way would be to keep two lists and merge in the correct order at link time.

facchinm avatar Apr 15 '19 08:04 facchinm