Subject: Re: Trouble intalling teTeX
To: Dave Uhring <duhring@charter.net>
From: Frederick Bruckman <fredb@immanent.net>
List: port-i386
Date: 05/16/2003 19:01:08
On Fri, 16 May 2003, Dave Uhring wrote:

> 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'

Another easy fix is to export LD_RUN_PATH=/usr/X11R6/lib into the
build environment before re-linking. This has exactly the same effect
as adding -Wl,-R/usr/X11R6/lib to the build flags, but doesn't require
re-running "configure" and rebuilding the whole thing. (Just "rm" the
binary from the build directory and run "make".) You can tell if it
worked by running "ldd" over the binary.

Frederick