[patch] Add an option to prevent a native gcc from searching /usr/libexec/gcc and /usr/lib/gcc

Paolo Bonzini bonzini@gnu.org
Wed Aug 5 15:19:00 GMT 2009


On 08/05/2009 05:00 PM, Rafael Espindola wrote:
> Currently a native gcc will unconditionally add /usr/libexec/gcc and
> /usr/lib/gcc to exec_prefixes and /usr/lib/gcc to startfile_prefixes.
> This is undesirable if one is trying to build an hermetic compiler. It
> is possible to avoid this problem by compiling gcc as a "fake" cross
> compiler, but then one cannot bootstrap.

An hermetic compiler being/being useful for/being defined at?... :-)

We have already a lot of cryptic configuration options.  I'd rather 
accept the limitation of no bootstrapping since you can always build twice.

Besides,

 > +# True if gcc should search the standard directories.
 > +hermetic_compiler = @hermetic_compiler@

is wrong and hints that if anything the sense of the option should be 
reversed (e.g. --disable-standard-dirs).

Paolo



More information about the Gcc-patches mailing list