There is a special RPATH value `$ORIGIN` which will do what you need. Not sure 
how you can pass the linker flag from Nim directly, but basically you can read 
about that value here:

<https://nehckl0.medium.com/creating-relocatable-linux-executables-by-setting-rpath-with-origin-45de573a2e98>

Reply via email to