------- Comment #11 from mark at codesourcery dot com  2008-06-08 21:12 -------
Subject: Re:  [4.3/4.4 Regression]: HOSTCC doesn't work
 with unstalled gcc

hjl dot tools at gmail dot com wrote:

>> I suspect that if you remove the setting in site.exp you will break the 
>> following scenario:
>>
>> 1. User puts libraries/headers in $pefix/{lib,include}
>> 2. User builds GCC with corresponding --prefix option
>> 3. User runs "make check"
> 
> Can't we at least test if $(libdir)/gcc/ exists before setting it
> blindly?

That seems like it might work.

What is the effective default value of GCC_EXEC_PREFIX for the compiler 
being tested if we don't set the variable?

Also, have you tested my suggested change to HOSTCC?  If HOSTCC is 
another GCC then any environment variables that affect the compiler 
we're trying to test will also affect HOSTCC.  It seems to me that the 
best way to avoid that causing problems is to make sure that HOSTCC 
sets/unsets the environment variables it needs.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36443

Reply via email to