[CT-NG:patch 03/19] Build candian baremetal compiler

Bart van der Meulen bartvdrmeulen@gmail.com
Mon Apr 12 12:35:00 GMT 2010


Yann, All

2010/4/11 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>:
> Remy, Bart, All,
>
> On Friday 09 April 2010 21:04:22 Remy Bohmer wrote:
>> Previous addition of the canadian cross compiler did not allow
>> to build a baremetal only variant, no reason why this is not
>> allowed
>>
>> Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
>> ---
>>  scripts/build/cc/gcc.sh |   29 ++++++++++-------------------
>>  1 file changed, 10 insertions(+), 19 deletions(-)
>>
>> Index: crosstool-ng/scripts/build/cc/gcc.sh
>> ===================================================================
>> --- crosstool-ng.orig/scripts/build/cc/gcc.sh
>> +++ crosstool-ng/scripts/build/cc/gcc.sh
> [--SNIP--]
>> @@ -233,11 +229,6 @@ do_cc_core() {
>>              install_rules="install-gcc"
>>      fi   # ! build libgcc
>>
>> -    if [ "${CT_CANADIAN}" = "y" ]; then
>> -        CT_DoLog EXTRA "Building libiberty"
>> -        CT_DoExecLog ALL make ${PARALLELMFLAGS} all-build-libiberty
>> -    fi
>> -
>
> This chunk seems unrelated.
>

You're right.
This chunk should have been placed in a separate patch.

One of the first patches that added the canadian build option added
this piece of code, which is incorrect.
I think I made the mistake myself by copy/pasting some canadian
specific code from the final gcc step to the core build step

When building the core_cc compiler there is no need for building
libiberty, (and before the changes to build a canadian baremetal
compiler, this code would never be called).

Bart

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list