I have a program. Program has more shared libraries (.so). I can't use $LD_LIBRARY_PATH (it's affected child processes). I try to use -rpath linker option, but I know right paths for libraries only during installation process. The solution is: link all .o files during installation with right -rpath option. But it's bad, because I use third-paty soft and can't link his .so files.
I find solutions with changing rpath in .so files. All utilities I found has limitation with length of new rpath (bad! and I can't add rpath to third-paty libraries).
Please, advise me new solutions!
Thank you!