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: Christian Franke
Subject: Re: [2290] 2009-06-10 Pavel Roskin <address@hidden>
Date: Thu, 11 Jun 2009 21:39:13 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16

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'.

--
Regards,
Christian Franke





reply via email to

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