On a project I’m working on I need to include a statically compiled library (libPDMFilter_GCC.a). As far as I’ve understood I should not place this in the /lib/ directory, so I’ve instead created some other directory, say lib_ext, and then added
build_flags = -lPDMFilter_GCC -Llib_ext
to the relevant platformio.ini file and regenerated the project. However, when compiling the project the actual command sent to the linker is
This issue seems to be isolated to specifications with a relative path, as using
-L/home/....../lib_ext generates the expected output and cleanly compiles.
Any ideas as to how to resolve this issue? I’ve tried various combinations of surrounding the command with “” and ‘’ but to no effect.