Linking .a files into Particle application

I have a library that is compiled for the nrf52 using arm-none-eabi-gcc, but it is distributed as a closed source library (e.g. it has a .a file and header files).

I am looking for a way to link this to my application. I would like to avoid modifying the toolchain makefiles if possible (9 years ago, that seemed to be the only solution)

Is there a more elegant way to instruct the Particle makefiles to link my archive and add my include files to the global include path?

Hi, have you seen these ones? I do not know how elegant they are.

Best,

Yes, I looked through those. Unfortunately they all come to (roughly) the same conclusion - that you have to modify the makefiles for the toolchain directly.

Was hoping that there was a way to specify additional LD search paths and libraries without modifying the toolchain makefiles directly (as the toolchain is shared amongst multiple projects on my machine).

There is no way to add an arbitrary .a file to the link process for user firmware without modifying the makefiles directly and building locally.