Subject: Re: Trouble intalling teTeX
To: john heasley <heas@shrubbery.net>
From: Dave Uhring <duhring@charter.net>
List: port-i386
Date: 05/16/2003 18:22:44
On Friday 16 May 2003 06:08 pm, john heasley wrote:
> 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.

SunOS (Solaris) requires that the libraries be linked with the 
-R/usr/whatever/lib LDFLAG at compile time.  There is no automatic 
LD_RUN_PATH installed in any user's environment, nor should there be; 
same as NetBSD.

In your ~/.shellrc file place something similar to this and your link 
problems will be generally solved:

export LDFLAGS='-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/sfw/lib 
-R/usr/sfw/lib -L/opt/qt3/lib -R/opt/qt3/lib'