If the runtime libraries are in a standard location (like /lib , /usr/lib or /usr/local/lib) the runtime linker should just find them no-problem.
If they are in a non-standard location you can edit /etc/ld.so.conf and add the path, then run ldconfig to update the locations the runtime linker searches (some distributions use a bunch of files, one for each lib, in a directory like /etc/ld.so.conf.d instead - can't remember what Ubuntu does).
You can also use the LD_LIBRARY_PATH environment variable to specify a path that should be searched.
There is also the option of using the linkers -rpath option to bake a search path into the executable.
So, there are many options each with their own pro's and con's
Edit: you may also want to look into the ldd tool ("man ldd").