🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by J. Eric Townsend Fri, 12 Jan 1990 01:42
Question about using gas with g++/gcc
#491
Author: J. Eric Townsend
Date: Fri, 12 Jan 1990 01:42
19 lines
1102 bytes

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).
Re: Question about using gas with g++/gcc
#492
Author: David C Lawrence
Date: Fri, 12 Jan 1990 04:35
20 lines
1225 bytes
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"))
Re: Question about using gas with g++/gcc
#493
Author: J. Eric Townsend
Date: Fri, 12 Jan 1990 18:39
19 lines
1256 bytes
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).
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads