[gnu.gcc] Question about using gas with g++/gcc

jet@karazm.math.uh.edu (J. Eric Townsend) (01/12/90)

In the g++ docs, it says:
"If GAS and GNU LD work for your machine, *use them*."

Ok, fine.  I have a SparcStation-1, gas and gnu ld should work just fine.
I assume that gnu ld is working when ld++ passes the make.

But how do I get gas to be my default assembler for building gcc and
g++?  I didn't see any obvious ways, or even any pain-in-the-butt ways.
(Well, I could ln -s /usr/local/lib/gas /bin/as :-)

No flames, please, this is an honestly naive question...

--
J. Eric Townsend
University of Houston Dept. of Mathematics
jet@karazm.math.uh.edu
Skate UNIX(tm).

tale@cs.rpi.edu (David C Lawrence) (01/12/90)

In <1990Jan12.014253.29048@lavaca.uh.edu> jet@karazm.math.uh.edu
(J. Eric Townsend) writes:
> In the g++ docs, it says:
> "If GAS and GNU LD work for your machine, *use them*."
> But how do I get gas to be my default assembler for building gcc and
> g++?  I didn't see any obvious ways, or even any pain-in-the-butt ways.

GCC looks in $(libdir)/gcc-* for the preprocessor, assembler, c compiler
and loader.  If it doesn't find what it wants there it will invoke
what it needs without the prefix.  $(libdir) is defined in the
Makefile.  To get it to invoke gas, have gas installed as $(libdir)/gcc-as.

> (Well, I could ln -s /usr/local/lib/gas /bin/as :-)

I adopted the symbolic link solution:
  lrwxrwxrwx  1 src            10 Dec 15 00:11 gcc-as -> ../bin/gas

Dave
-- 
   (setq mail '("tale@cs.rpi.edu" "tale@ai.mit.edu" "tale@rpitsmts.bitnet"))

jet@karazm.math.uh.edu (J. Eric Townsend) (01/13/90)

In article <1990Jan12.014253.29048@lavaca.uh.edu> jet@karazm.math.uh.edu (J. Eric Townsend) writes:
>In the g++ docs, it says:
>"If GAS and GNU LD work for your machine, *use them*."

Ok, I got a lot of mail on this.  Thanks already... :-)

I do appriciate the thought of adding this information to the
distributed documentation.  While I like the GNU products, and agree
with %97 of the FSF philosophy, I don't want to spend days and days
trying to decrypt how things are accomplished.  I was rather surprised
to hear that $(libdir)/gcc- is a search path, for instance...

Thanks for all the help...

--
J. Eric Townsend
University of Houston Dept. of Mathematics
jet@karazm.math.uh.edu
Skate UNIX(tm).