Re: ldconfig with a non-standard prefix
On Wed, Dec 03, 2008, Petter Reinholdtsen wrote:
> > I cannot find anywhere in the documentation how to solve my current
> > problem. I have made bunch of custom packages that will install, among
> > other things, a bunch of libraries into /opt/pkgs/packagname. I know
> > that ldconfig gets run after apt-get.
>
> I suspect the proper solution is to add a rpath or runpath to the
> binaries using these libraries, to tell the dynamic linker about the
> extra library path. This can be done during the linker stage using
> -Wl,-rpath,/opt/pkts . You can also change the rpath/runpath using
> chrpath, if the end result is not the way you want it.
Or perhaps a new /etc/ld.so.conf.d/packagname.conf?
--
Loïc Minier
Reply to: