grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [2290] 2009-06-10 Pavel Roskin <address@hidden>


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [2290] 2009-06-10 Pavel Roskin <address@hidden>
Date: Thu, 11 Jun 2009 21:45:08 +0200

On Thu, Jun 11, 2009 at 9:39 PM, Christian
Franke<address@hidden> wrote:
> Pavel Roskin wrote:
>>
>> Revision: 2290
>>          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2290
>> Author:   proski
>> Date:     2009-06-10 18:32:13 +0000 (Wed, 10 Jun 2009)
>> Log Message:
>> -----------
>> 2009-06-10  Pavel Roskin  <address@hidden>
>>
>>        * configure.ac: Use -nostdlib when probing for the target.  It
>>        should not be required to have libc for the target.
>> ...
>>  # Set them to their new values for the tests below.
>>  CC="$TARGET_CC"
>> -CFLAGS="$TARGET_CFLAGS"
>> +CFLAGS="$TARGET_CFLAGS -nostdlib"
>>  CPPFLAGS="$TARGET_CPPFLAGS"
>>  LDFLAGS="$TARGET_LDFLAGS"
>>
>>
>
> This change breaks build at least on Cygwin, ./configure fails with:
>
> checking whether target compiler is working... no
> configure: error: cannot compile for the target
>
> The link test in grub_PROG_TARGET_CC fails due to missing '__main' symbol
> from libgcc. According to gcc 4.3.2 man page, '-nostdlib' usually requires
> '-lgcc'.
Try compiling but not linking using -c option. If it works you can
commit it since we never do complete linking for target
>
> --
> Regards,
> Christian Franke
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



-- 
Regards
Vladimir 'phcoder' Serbinenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]