How to use new GAS

Ian Lance Taylor ian@wasabisystems.com
Fri Jan 30 03:03:00 GMT 2004


Brian Blietz <bblietz@iastate.edu> writes:

> I have modified my GAS and would now like to
> use it very selectively.
> I don't want it to be the one in /usr/bin.
> 
> I have looked in my Makefiles for my test packages,
> and do not see a place where the location of /usr/bin/as
> is set.
> 
> How do you make gcc use "as" from another directory?
> For example /home/myname/binutils-2.14/bin/as

To install as in different place, use --prefix when you configure the
binutils.  Or just copy the binary where you want it.

To make gcc use a different as, when you configure gcc, use
    --with-as=FULL_PATH_TO_AS

Or always invoke gcc with -B AS_DIRECTORY/ (note the trailing slash).

Ian



More information about the Binutils mailing list