Question: How dose Gcc choose which Ld and As to use?
Ian Lance Taylor
iant@google.com
Thu Dec 27 21:56:00 GMT 2007
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
More information about the Gcc-help
mailing list