Article View: gnu.gcc.help
Article #53239Re: INCPATH and LIBPATH?
From: Gary S. Moss (VLD/VMB) <moss>
Date: Tue, 18 Feb 1992 15:30
Date: Tue, 18 Feb 1992 15:30
28 lines
2152 bytes
2152 bytes
In article <BASHFORD.92Feb13160404@zippy.scripps.edu>, bashford@scripps.edu (Don &) writes: |> 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 You don't need to recompile everything to change the destination of the installed binaries, passing a define on make's command line would do it: make 'BINDIR=whatever' install Given personal preferences, I concede that overiding Makefile configurations with environment variables can be useful, but the sources should compile correctly in the absence of these environment variables once your system configuration stabilizes. -Gary
Technical Details
Message-ID:
<18164@smoke.brl.mil>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!adm!smoke!brl.mil!mossReferences:
<1028@lysator.liu.se> <18147@smoke.brl.mil> <BASHFORD.92Feb13160404@zippy.scripps.edu>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-18 08:03:01 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!hsdndev!adm!smoke!brl.mil!moss From: moss@brl.mil (Gary S. Moss (VLD/VMB) <moss>) Newsgroups: gnu.gcc.help Subject: Re: INCPATH and LIBPATH? Message-ID: <18164@smoke.brl.mil> Date: 18 Feb 92 15:30:02 GMT References: <1028@lysator.liu.se> <18147@smoke.brl.mil> <BASHFORD.92Feb13160404@zippy.scripps.edu> Sender: news@smoke.brl.mil Reply-To: moss@brl.mil Organization: Ballistic Research Laboratory Lines: 28