Telling gcc about the binutils

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Jul 1 20:15:00 GMT 1998


> How can I tell gcc and g++ to look for the binaries in a certain
> directory?

You can't; gcc has a fixed search order for these:
1) Look in the installation directory
2) Look in the architecture binaries directory (/usr/sparc-sun-solarisxxx/bin)
3) Look elsewhere

>From that, it is quite easy to make a specific installation use a
certain set of tools: Just put symlinks into the installation
directory (the one where cc1 and cc1plus live).

Technically, you can specify another such directory using the -b and
-B options.

On Sparc, there is also a difference whether you configure
--with-gnu-as or not. If you say nothing, it will always try
/usr/ccs/bin as the second step.

Hope this helps,
Martin



More information about the Gcc mailing list