Re: Getting into Xwindows programming???

Roland John Turner (rjturner@nospam.socs.uts.edu.au)
Tue, 29 Aug 1995 12:13:13 +1000 (EST)

Anton Blanchard wrote:
>
> On Tue, 29 Aug 1995, Roland John Turner wrote:
>
> > X is freeware (I think...). libX11.so.* is kind of critical to getting
> > anything to work. You'll need to play with your LD_LIBRARY_PATH or similar
> > to include /usr/X11/lib or wherever it's stored so that your app can find
> > it at runtime.
>
> Better still link with the -R option and save using the hack that is
> LD_LIBRARY_PATH :)

A quick peek at the 'ld' man page shows no -R option - what does
it do?

Anyway, LD_LIBRARY_PATH is no more a hack than PATH. If you hard
code your library references, your binary loses portability. A binary
for, say, SunOS expecting the lib at /lib/X11 to get it working in SoCS
would then not operate under say Solaris (N.B. binary compatibility on)
where such things live around /usr/openwin/share/lib... (or thereabouts).

- Raz