Pass the soname option to the linker for shared libs so it stops embedding the output path in the dynamic section, which breaks the ability to run from any directory but one above where the target is.