Why is building a cross compiler "out-of-the-box" always broken?

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Thu Aug 23 06:20:00 GMT 2007


Rask Ingemann Lambertsen wrote:
> On Sun, Aug 19, 2007 at 10:09:25AM +0200, Paolo Bonzini wrote:
>>>   Thanks for reminding me to ping that patch.
>> Could you try moving this case statement
>>
>> +	case "$target" in
>> +	  i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
>> +	    libgloss_dir=i386
>> +	    ;;
>> +	  m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
>> +	    libgloss_dir=m68hc11
>> +	    ;;
>>
>> above in another "case $target in" statement?
> 
>    I don't understand what you want it to look like. Your explanation sounds
> to me like
> 
> 	case "$target" in
> 	  i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
> 	    libgloss_dir=i386
> 	    ;;
> 	  m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
> 	    libgloss_dir=m68hc11
> 	    ;;
> 	esac

Sorry, I meant "all the case statement".  There are many case "$target" 
statements and I would rather avoid trying to avoid one.  Setting 
libgloss_dir=${cpu} as a default can be done above the case "$target" 
you choose.

Paolo



More information about the Gcc mailing list