Re: Question: How dose Gcc choose which Ld and As to use?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Dineen <tdineen@xxxxxxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux