Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: gnu.gcc Subject: Re: How do I force gcc to use all-GNU programs? Message-ID: Date: 16 Oct 89 13:43:37 GMT References: <2440@caesar.cs.montana.edu> Sender: @MorningStar.COM Reply-To: bob@MorningStar.Com (Bob Sutterfield) Distribution: usa Organization: Morning Star Technologies Lines: 11 In-reply-to: icsu6000@caesar.cs.montana.edu's message of 16 Oct 89 03:28:05 GMT In article <2440@caesar.cs.montana.edu> icsu6000@caesar.cs.montana.edu (Jaye Mathisen) writes: I have a directory '/usr/local/gnu' that I keep all the gnu programs in. I want to force gcc to use /usr/local/gnu/gas, /usr/local/gnu/ld, etc. etc. for every invocation. In gcc's Makefile, you named a "libdir". Make things named $libdir/gcc-as and $libdir/gcc-ld that do the right things. In my case, /usr/local/lib/gcc-as is a symbolic link to /usr/local/bin/gas, and similarly with /usr/local/lib/gcc-ld -> /usr/local/bin/gld. That way, people can invoke gas and gld directly from their $path, and gcc can invoke them at the appropriate times during compilation.