This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]