🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53232

Re: INCPATH and LIBPATH?

#53232
From: Don &
Date: Fri, 14 Feb 1992 00:04
30 lines
2378 bytes
>>>>> On 13 Feb 92 14:28:04 GMT, moss@brl.mil (Gary S. Moss <moss>) said:

Gary> I think that depending on environment variables is a bad idea.
Gary> The source code should compile correctly regardless; it is easy
Gary> enough to define the compiler and loader flags in the makefile,
Gary> cakefile, Imakefile, or whatever you use.  In fact, good
Gary> software distributions take care of this with a top-level
Gary> configuration file.  It is unlikely that using environment
Gary> variables provides flexibility, typically you always use the
Gary> same include and lib directories to compile a given program.
Gary> Also, it would be a pain to have to change environment variables
Gary> when compiling different executables, possibly in the same
Gary> source tree.

I think environment variable hooks should be provided whenever a
software system has to know about pathnames for finding include files,
data files, libraries, compiler passes, auxilliary programs, etc.
For example, the Mit X11R4 sample distribution compiled for installation
in "the usual places" (under /usr) can be made to work properly
if you put it elsewhere by means of environment variables.  If
you want to install things in non-standard places because of
disk space or access restrictions or NFS server politics, this is
very important.

Top level config files that allow for setting pathnames at compile
time are also essential, but not a substitute for environment variable
hooks.  What if you want to change the location of the installed files
because you have access to a new disk or a new server?  You don't want to
have to recompile all your software, so its nice if you can just set
some new environment variables
Technical Details
Message-ID: <BASHFORD.92Feb13160404@zippy.scripps.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!network.ucsd.edu!scripps!riscsm!bashford
References: <1028@lysator.liu.se> <18147@smoke.brl.mil>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d10ab7e54eef2618
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-02-14 14:11:08 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!network.ucsd.edu!scripps!riscsm!bashford
From: bashford@scripps.edu (Don &)
Newsgroups: gnu.gcc.help
Subject: Re: INCPATH and LIBPATH?
Message-ID: <BASHFORD.92Feb13160404@zippy.scripps.edu>
Date: 14 Feb 92 00:04:04 GMT
References: <1028@lysator.liu.se> <18147@smoke.brl.mil>
Sender: news@Scripps.EDU
Organization: Scripps Research Institute, La Jolla, CA, USA
Lines: 30
In-reply-to: moss@brl.mil's message of 13 Feb 92 14:28:04 GMT