This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question: How dose Gcc choose which Ld and As to use?
- From: Ian Lance Taylor <iant at google dot com>
- To: Thomas Dineen <tdineen at ix dot netcom dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 27 Dec 2007 13:56:12 -0800
- Subject: Re: Question: How dose Gcc choose which Ld and As to use?
- References: <476D77D6.4040208@ix.netcom.com>
Thomas Dineen <tdineen@ix.netcom.com> writes:
> When gcc is executed to compile and link a target
> how dose it choose which ld and as to use?
> Not via the normal search path ($path) I think!
> It must be an explicitly hardwired path?
> So how and when is this path determined?
> At gcc build time? And can it be changed after build?
You can see the search path by running gcc with the -print-search-dirs
option.
You can change this path using the -B option or the environment
variable GCC_EXEC_PREFIX and COMPILER_PATH. See the friendly manual.
Ian