I am building a library for the Libretro framework, and I want to get the path of my library so that I can open a file in the same directory as my library.so
file.
I followed the instructions at How to implement readlink to find the path, but that just gives me the path of the executable that is calling my library.