Locating shared libraries

Stefan O'Rear stefanor at cox.net
Wed Jun 13 18:24:05 EDT 2007


On Wed, Jun 13, 2007 at 11:33:36AM -0700, Bryan O'Sullivan wrote:
> Clemens Fruhwirth wrote:
> 
> >>Libtool's fondness for cooking RPATH into binaries makes it very 
> >>difficult to deal with, because it's quite common for those binaries to 
> >>get installed and distributed, RPATH and all.  RPATH should only be used 
> >>by a user who knows they have a large-calibre weapon pointed at their 
> >>foot.
> >
> >Did I understand that correctly that you don't want to see binaries
> >with rpath's pointing to install directories such as /usr/lib/gcc-6.6?
> 
> That's right.
> 
> >So, this forces us to use a wrapper in all cases.
> 
> Not necessarily.  Many systems provide a global mechanism to manage the 
> paths that ld.so searches for shared objects.  This is the standard on 
> Linux, for example (/etc/ld.so.conf).  For systems that don't provide 
> this mechanism, one possibility would be to provide an option that cooks 
> the rpath in.

Or better yet, put them directly in one of the LD_LIBRARY_PATH dirs.
$PREFIX/lib/ghc-$VERSION is a relic of the static library system and
IMO shouldn't be duplicated.

Stefan


More information about the Glasgow-haskell-users mailing list