From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8580 invoked by alias); 16 Jun 2012 12:13:54 -0000 Received: (qmail 8570 invoked by uid 22791); 16 Jun 2012 12:13:51 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com) (209.85.212.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jun 2012 12:13:38 +0000 Received: by wibhj6 with SMTP id hj6so288674wib.8 for ; Sat, 16 Jun 2012 05:13:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.30.195 with SMTP id k45mr4812826wea.40.1339848817563; Sat, 16 Jun 2012 05:13:37 -0700 (PDT) Received: by 10.180.7.234 with HTTP; Sat, 16 Jun 2012 05:13:37 -0700 (PDT) In-Reply-To: References: Date: Sat, 16 Jun 2012 12:13:00 -0000 Message-ID: Subject: Re: Building gcc with gnu binutils automatically From: NightStrike To: Ian Lance Taylor Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00139.txt.bz2 On Mon, Jun 11, 2012 at 7:47 PM, Ian Lance Taylor wrote: > NightStrike writes: > >> If you use gnu ld or as to build GCC, you get extra features in gcc >> itself. =A0There's a few bugzilla PRs on this, and a lot of emails on >> the mailing list. =A0What I don't see, however, is how I can have >> configure detect the usage of GNU binutils automatically. =A0In other >> words, without explicitly passing in --with-gnu-ld/as, I don't get the >> features in question. >> >> Is there a way to do this? =A0Or, is there a way to fix configure so >> that it does some test without requiring the option? =A0Also, is there a >> way to do this for a cross compiler? > > Historically, the concern was that if person A builds the compiler and > hands it to person B, person B may have a different assembler or linker > than person A. =A0So we force person A to explicitly indicate whether they > are using the GNU assembler. > > However, this general rule is not followed very much. =A0E.g., when using > the GNU tools, the configure scripts check for various features of them, > which could fail if person B has a different version of the GNU tools > installed. > > So I think it would be reasonable to have the configure script set the > defualt for -with-gnu-ld/as based on the tools found at configure time. Is this something you would be willing to do?