Xref: utzoo gnu.g++:590 gnu.gcc:1253 Path: utzoo!telly!philmtl!uunet!crdgw1!rpi!tale From: tale@cs.rpi.edu (David C Lawrence) Newsgroups: gnu.g++,gnu.gcc Subject: Re: Question about using gas with g++/gcc Message-ID: <$RN&*^@rpi.edu> Date: 12 Jan 90 04:35:21 GMT References: <1990Jan12.014253.29048@lavaca.uh.edu> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 20 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"))