gEDA-dev: Using libtool to link gschem.... RPATH header for library search

Stuart Brorson sdb at cloud9.net
Sun Nov 11 09:45:40 EST 2007


On Sun, 11 Nov 2007, Peter Clifton wrote:

> Hi,
>
> I was thinking a bit about the need to set LD_LIBRARY_PATH for the
> common case where a user installs gEDA in their home directory. It
> represents one more barrier to getting things working, and stops users
> being able to create desktop launchers pointing directly at the
> application. (You'd need a wrapper script).
>
> It turns out that linking with libtool:
> libtool --mode=link gcc .....
>
> will add an appropriate RPATH entry for the libraries we link with. This
> should solve the problem, and as we already (IIRC) hard-code a path to
> the GEDADATADIR in libgeda anyway.
>
> Is this a good idea?

Since it munges a system variable, doesn't it require root access?

Stuart



More information about the geda-dev mailing list