Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MEqD7-0006Jf-EC for mharc-grub-devel@gnu.org; Thu, 11 Jun 2009 15:45:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEqD5-0006IE-1G for grub-devel@gnu.org; Thu, 11 Jun 2009 15:45:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEqD0-0006CD-HA for grub-devel@gnu.org; Thu, 11 Jun 2009 15:45:14 -0400 Received: from [199.232.76.173] (port=49355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEqD0-0006C7-Ei for grub-devel@gnu.org; Thu, 11 Jun 2009 15:45:10 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:35520) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEqD0-0008LD-3f for grub-devel@gnu.org; Thu, 11 Jun 2009 15:45:10 -0400 Received: by fxm17 with SMTP id 17so2423973fxm.42 for ; Thu, 11 Jun 2009 12:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=i1ir5Q1pzJPTGs/kXwvXuc6lAnRiYQO11ysK4nrNT98=; b=ZRVXKIPJa/Mq9jfrPOmAxiuW+8qxbKU4JqMKSsc6ycRh8IBFOxEnDteJRyO46imK7a SlmGSRmEnVsSzT4cAaeH8tIDyXEtV6lgfzy6P13cPHZboSjC2kyQxvQaNAnXLwXRuiHJ skgRdkLD3TuFCMMiYNJpiIj7xtFOgyZLoSWM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aks+OfxmAnImIdehJB6Nu3QfHaWfJObw7kbzqqgf+f2Kue2pXsI8ysqU0B2dnucLZF I8UjMCfiDmzSj6w+iw2w5iyEIjZlCODu2rpMR3v11ipAuqgaA0VCnRSB5/qMyEyUdpUt 6YG0lPKwrhYD2mkxvIbAuPDOHlZS6F71/EbNw= MIME-Version: 1.0 Received: by 10.204.65.1 with SMTP id g1mr2832071bki.57.1244749508491; Thu, 11 Jun 2009 12:45:08 -0700 (PDT) In-Reply-To: <4A315D61.8060705@t-online.de> References: <4A315D61.8060705@t-online.de> Date: Thu, 11 Jun 2009 21:45:08 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [2290] 2009-06-10 Pavel Roskin X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 19:45:15 -0000 On Thu, Jun 11, 2009 at 9:39 PM, Christian Franke wrote: > Pavel Roskin wrote: >> >> Revision: 2290 >> =A0 =A0 =A0 =A0 =A0http://svn.sv.gnu.org/viewvc/?view=3Drev&root=3Dgrub&= revision=3D2290 >> Author: =A0 proski >> Date: =A0 =A0 2009-06-10 18:32:13 +0000 (Wed, 10 Jun 2009) >> Log Message: >> ----------- >> 2009-06-10 =A0Pavel Roskin =A0 >> >> =A0 =A0 =A0 =A0* configure.ac: Use -nostdlib when probing for the target= . =A0It >> =A0 =A0 =A0 =A0should not be required to have libc for the target. >> ... >> =A0# Set them to their new values for the tests below. >> =A0CC=3D"$TARGET_CC" >> -CFLAGS=3D"$TARGET_CFLAGS" >> +CFLAGS=3D"$TARGET_CFLAGS -nostdlib" >> =A0CPPFLAGS=3D"$TARGET_CPPFLAGS" >> =A0LDFLAGS=3D"$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 require= s > '-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 > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko