Reading here the 3th section:
https://homepages.inf.ed.ac.uk/imurray2/compnotes/library_linking.txt
you can probably also try option:
export LD_RUN_PATH="."
in the makefile?
I think this is necessary for Linux and macOS. On Windows it will auto work if the object and the lib are in the same dir.