|
| | Subject: | Re: Question: How dose Gcc choose which Ld and As to use? | | Group: | Gcc-help | | From: | Ian Lance Taylor | | Date: | 27 Dec 2007 |
Thomas Dineen <tdineen> 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
|