From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16110 invoked by alias); 23 Jan 2012 22:13:49 -0000 Received: (qmail 16101 invoked by uid 22791); 23 Jan 2012 22:13:48 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jan 2012 22:13:36 +0000 Received: by pbdu6 with SMTP id u6so2245442pbd.0 for ; Mon, 23 Jan 2012 14:13:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.74.72 with SMTP id r8mr25114997pbv.8.1327356815580; Mon, 23 Jan 2012 14:13:35 -0800 (PST) Received: by 10.143.7.4 with HTTP; Mon, 23 Jan 2012 14:13:35 -0800 (PST) In-Reply-To: <201201231708.18054.vapier@gentoo.org> References: <201201180528.36151.vapier@gentoo.org> <201201231708.18054.vapier@gentoo.org> Date: Mon, 23 Jan 2012 22:13:00 -0000 Message-ID: Subject: Re: libstdc++ configure fail due to -EL option From: Bryan Hundven To: Mike Frysinger Cc: crossgcc@sourceware.org, Zhenqiang Chen , Khem Raj Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00056.txt.bz2 On Mon, Jan 23, 2012 at 2:08 PM, Mike Frysinger wrote: > On Monday 23 January 2012 16:08:39 Bryan Hundven wrote: >> On Wed, Jan 18, 2012 at 2:28 AM, Mike Frysinger wrot= e: >> > On Wednesday 18 January 2012 02:09:09 Zhenqiang Chen wrote: >> >> > -EL is only valid for mips gcc as far as ct-ng is concerned. It sho= uld >> >> > not be used for arm configurations since arm is little endian by >> >> > default pluis this is an invalid option you need >> >> > -mlittle-endian for arm if you really want to specify it explicitly. >> >> >> >> -EL/-EB is added in crosstool-ng automatically. Here is the code >> >> segment in scripts/functions >> >> >> >> CT_DoBuildTargetTuple() { >> >> =A0 =A0 # Set the endianness suffix, and the default endianness gcc o= ption >> >> =A0 =A0 case "${CT_ARCH_ENDIAN}" in >> >> =A0 =A0 =A0 =A0 big) >> >> =A0 =A0 =A0 =A0 =A0 =A0 target_endian_eb=3Deb >> >> =A0 =A0 =A0 =A0 =A0 =A0 target_endian_el=3D >> >> =A0 =A0 =A0 =A0 =A0 =A0 CT_ARCH_ENDIAN_CFLAG=3D"-mbig-endian" >> >> =A0 =A0 =A0 =A0 =A0 =A0 CT_ARCH_ENDIAN_LDFLAG=3D"-EB" >> >> =A0 =A0 =A0 =A0 =A0 =A0 ;; >> >> =A0 =A0 =A0 =A0 little) >> >> =A0 =A0 =A0 =A0 =A0 =A0 target_endian_eb=3D >> >> =A0 =A0 =A0 =A0 =A0 =A0 target_endian_el=3Del >> >> =A0 =A0 =A0 =A0 =A0 =A0 CT_ARCH_ENDIAN_CFLAG=3D"-mlittle-endian" >> >> =A0 =A0 =A0 =A0 =A0 =A0 CT_ARCH_ENDIAN_LDFLAG=3D"-EL" >> >> =A0 =A0 =A0 =A0 =A0 =A0 ;; >> >> =A0 =A0 esac >> > >> > LDFLAGS should take the form as needed by the compiler driver. =A0i.e. >> > -Wl,-EL. >> >> Well, we'd get the same error if we pass -Wl,-EL to ld, where that >> would fix it for passing to gcc. > > yes, but generally speaking, you should not be invoking the linker. > everything should be going through the compiler driver. Keywords being "should be". > -mike Thanks again, Mike! -Bryan -- For unsubscribe information see http://sourceware.org/lists.html#faq