What do you mean with hardcoded? You load the libs at runtime from your code or you used the linker flag to specify the /usr/lib location?

If it is the ladder one then I think you can just copy the .so files to the executable directory.