From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17718 invoked by alias); 3 Nov 2010 19:18:52 -0000 Received: (qmail 17707 invoked by uid 22791); 3 Nov 2010 19:18:51 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mail.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 03 Nov 2010 19:18:46 +0000 Received: (qmail invoked by alias); 03 Nov 2010 19:18:43 -0000 Received: from xdsl-89-0-166-231.netcologne.de (EHLO localhost.localdomain) [89.0.166.231] by mail.gmx.net (mp041) with SMTP; 03 Nov 2010 20:18:43 +0100 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1PDir2-0000Fx-Mr; Wed, 03 Nov 2010 20:18:40 +0100 Date: Wed, 03 Nov 2010 19:26:00 -0000 From: Ralf Wildenhues To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org Subject: Re: PATCH RFA: Build system: Check for -static-libstdc++ Message-ID: <20101103191840.GA956@gmx.de> Mail-Followup-To: Ralf Wildenhues , Ian Lance Taylor , gcc-patches@gcc.gnu.org References: <20101103060857.GD6183@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2010-08-04) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg00340.txt.bz2 * Ian Lance Taylor wrote on Wed, Nov 03, 2010 at 03:23:05PM CET: > Ralf Wildenhues writes: > > This will not work with non-GCC compilers that print something other > > than "unrecognized option" upon such an option. I think you should at > > least check that you can form a command with the flag that exits zero, > > that way you may still have warnings during Stage 1 but at least not a > > hard build failure. > > > > Alternatively, you could check whether $GXX is yes, to be sure to only > > accept the flag for GCC. > > Good point. I think testing $GXX is fine. How about this patch? This looks OK to me from a correctness POV, but I cannot approve nor do I intend a statement regarding the other objections. Cheers, Ralf > 2010-11-03 Ian Lance Taylor > > * configure.ac: Set and substitute STATIC_LIBSTDCXX. > * Makefile.in (STATIC_LIBSTDCXX): New variable. > * configure: Rebuild.