6 msgtop-level configure options, --help
2 msgAnother Gcc 4.2.2 Bug
2 msgGcc Patch Archive?
10 msgCompile gcc from source on a 64 bit OS ?
4 msgRe: help compiling GCC in Fedora 8
10 msgconfigure: error: No support for this target/ho...
5 msgCan `cpp' strip off comments in C source code?
2 msgQuestion On Testsuite 12/22/07

Question: How dose Gcc choose which Ld and As t...
\ Thomas Dineen (22 Dec 2007)
. \ Ian Lance Taylor (27 Dec 2007)

2 msgneed an explanation on assembly generated by va...
3 msgI can not resolve 'error: conflicting types for...
8 msga question about code optimization
7 msgAn error when trying to gmake install GCC 3.4.6...
2 msgRE: Initialization of a static member of a temp...
9 msgvoid pointer and map
3 msgAnother Gcc-4.1.2 Bug On Solaris 9 12/20/07
2 msgHelp with building/using GCC cross compiler to ...
1 msgBootstrapping gcc-4.2.2 with binutils-2.18
2 msginline assembly and segment registers
1 msgMultiple names for gcc inline assembly constrai...
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


© 2004-2008 readlist.com