there is a way to avoid strict libraries linking?

Gary Jennejohn gljennjohn at googlemail.com
Wed Apr 14 17:08:26 UTC 2010


On Wed, 14 Apr 2010 12:23:16 -0400
Leinier Cruz Salfran <salfrancl.listas at gmail.com> wrote:

> hello all fbsd devs
> 
> i want to know if there is a possibility to avoid current strict
> libraries linking .. i will explain myself
> 
> for example .. i have installed 'gtk' (2.18) that depends on library
> 'libpng.so.5' (png) .. and i will upgrade 'png' port to a superior
> version that install the library 'libpng.so.6' BUUUTTTT 'gtk' will not
> be upgraded, so it will still depending on 'libpng.so.5' .. so here is
> my question: there is a way to avoid this?????? i means that 'gtk'
> load 'libpng.so' (that is a symbolic link to 'libpng.so.6') instead of
> 'libpng.so.5' at runtime
> 
> i think this is a VERY VERY strict rule because in linux programs load
> 'lib*.so' instead 'lib*.so.#' except if that program was linked to
> 'lib*.so.#' at compilation time
>

You might be able to do this with /etc/libmap.conf.  See the man page
for libmap.conf(5).

--
Gary Jennejohn


More information about the freebsd-hackers mailing list