Subject: Re: static vs. dynamic runtime linking, again (was: PAM and su -K)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-userlevel
Date: 01/25/2005 12:29:33
der Mouse <mouse@Rodents.Montreal.QC.CA> writes:

> This is singularly unhelpful advice.  As for "changed somewhat since
> 1980", I pretended to be a new user, someone used to using X elsewhere.
> I went and read over the cc manpage (on the 2.0 system) as if I had
> just tried to link with no special options, got the errors, found the
> libraries, and was just wondering how to get the compiler to do what it
> should have been doing automatically (search /usr/X11R6/lib too).

A classic X program should be build with xmkmf ("xmkmf; make
Makefiles; make depend; make"), which DTRT with respect to -L and -R
automatically. If it didn't build with this build system, it would
have always required some poking around to build it on every different
system with X.

        - Nathan