You can change the compilation flag with dynlibOverride and passC/passL to point to the .a file.
You can use nimblas as an example. It supports both dynamic and static libraries: https://github.com/unicredit/nimblas