trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2010

Re: [trinity-devel] RPATH vs LD_LIBRARY_PATH

From: "Timothy Pearson" <kb9vqf@...>
Date: Thu, 7 Oct 2010 12:10:03 -0500
> Hello,
>
> I wonder if is not good ideea to set RPATH into Trinity binaries, to
> ${prefix}/lib. In this case Trinity will still working even
> LD_LIBRARY_PATH
> is not set at all.
>
> Pros? Cons?

Pros: Avoids library not found problems during compilation, *as long as
the libraries are never moved on the system.*

Cons: Causes all kinds of library not found problems for the user, as he
or she may not be aware that libraries cannot be moved.  Developers would
have to rebuild every single package that uses Trinity libraries if a core
library changed location, which is impractical to nearly impossible.

Tim