Subject: Re: Trouble intalling teTeX
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: john heasley <heas@shrubbery.net>
List: port-i386
Date: 05/16/2003 16:08:56
Sat, May 17, 2003 at 12:07:39AM +0200, Manuel Bouyer:
> On Fri, May 16, 2003 at 11:57:17AM -0400, Yasir Malik wrote:
> > Thank you very much!  I put LD_LIBRARY_PATH=/usr/X11R6/lib in .profile.
> 
> But this isn't a good solution. It means your programs were compiled with
> innapropriate flags.
> Try adding
> -Wl,-R/usr/X11R6/lib to the linker flags (adding it near
> -L/usr/X11R6/lib should be enouth).

-Wl,-rpath=/usr/X11R6/lib ?

out of curiosity, why isnt the rpath (LD_RUN_PATH) automatically updated
by the linker?  every dynamic-linked binary will need to find it's libs.
iirc, sunos did/does this.