|
From: | Georg-Johann Lay |
Subject: | Re: [avr-gcc-list] [Patch, avr-libc]: Relax sanity check for CC from *avr*gcc* to *gcc* |
Date: | Tue, 01 Nov 2011 12:00:07 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
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/gccso 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.
[Prev in Thread] | Current Thread | [Next in Thread] |