Re: What is the search path for gcc sub-programs?

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

 



ali hagigat <hagigatali@xxxxxxxxx> writes:

> According to the manual, search first looks at -B and then two
> directories, â/usr/lib/gcc/â and â/usr/local/lib/gcc/â and then PATH
> environment variable.
>
> But why "collect2"  is found in
> /usr/libexec/gcc/i686-redhat-linux/4.4.4/? There is no such path in my
> PATH environment variable. Besides it seems that the compiler driver
> is searching "collect2" by COMPILER_PATH symbol. The same path is used
> for "cc1" but not for "as" !!

The compiler uses additional paths to find internal compiler programs
like cc1 and collect2.  As far as I know these additional paths are not
documented, and they may change in the future.  The -B option works as
documented.

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