Weddington, Eric schrieb:
Subject: Re: [avr-gcc-list] [Patch, avr-libc]: Relax sanity check
for CC from *avr*gcc* to *gcc*
Georg-Johann Lay schrieb:
This is a proposed patch to allow compiler names that don't fit
into the "avr-gcc" scheme like, e.g. "xgcc".
Why is this patch needed?
The avr-libc documentation promises that CC allows to set a user-defined
build-compiler. This is sabotaged by a too strict checking like
restricting to a specififc name like, say avr-gcc.
For example, the avr-gcc testsuite is typicaly run against a freshly
built, not yet installed compiler with
$ $BUILD/gcc/xgcc -B$BUILD/gcc
so that it is desirable to build avr-libc with that compiler without the
need of a complete avr-gcc installation of the new compiler, i.e. you
want to set CC="$BUILD/gcc/xgcc -B$BUILD/gcc" when configuring avr-libc.
The patch adds support of this feature. -dumpmachine will just print "avr".
Johann
* configure.ac (CC): Use `${CC} -dumpmachine` to query for right
cross compiler instead of checking CC.
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list