Paths for finding own shared libraries

From: vital (vitaly.slobodskoy_at_gmail.com)
Date: 03/22/05


Date: 22 Mar 2005 07:08:31 -0800

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!



Relevant Pages

  • Paths for finding own shared libraries
    ... Program has more shared libraries. ... $LD_LIBRARY_PATH (it's affected child processes). ... linker option, but I know right paths for libraries only during ... I find solutions with changing rpath in .so files. ...
    (comp.os.linux.development.apps)
  • Re: $path and /etc/ld.so.conf
    ... libraries at runtime. ... The presence of entries in the rpath has no bearing on whether rld will search ... executable is running setuid, ...
    (comp.sys.sgi.admin)
  • Re: How to create binary and source distributions
    ... So, when library is created, its .la file will contain also rpath. ... Sure, I can use 'make install DESTDIR=some_another_prefix', but all ... links from executables and libraries will still point to configured_prefix. ...
    (comp.os.linux.development.apps)
  • Re: VC6/SP5 MFC Linker?
    ... All it means is that you included libraries whose functions are never called, ... I think there is a linker option to suppress this ... >following warnings. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Core in a multithread application in AIX using RogueWave
    ... You get a crash inside malloc/free implementation. ... this is a result of heap corruption. ... qthreaded compiler and linker option. ... libraries were not built using that option. ...
    (comp.unix.aix)