I don't see why you would need to specify --build
at all. Just set the environment variable: CC=avr-gcc
(the AVR cross compiler), and use --prefix=...
and --host=avr
as before. AVR-libc will set the CFLAGS to the 'best' values as it builds each ISA version in the multi-lib.
However, if you want to specify --build
, use the backtick characters rather than the single-quote characters to execute the script: --build=`./config.guess`