From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7467 invoked by alias); 24 Nov 2014 00:39:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7413 invoked by uid 48); 24 Nov 2014 00:39:26 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/64023] [5 Regression] r216964 breaks bootstrap on darwin when using gcc as the bootstrap compiler. Date: Mon, 24 Nov 2014 00:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fxcoudert at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02646.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64023 --- Comment #4 from Iain Sandoe --- (In reply to Francois-Xavier Coudert from comment #3) > Even with that patch, there remains the "silent" issue of not linking > statically when clang is the system compiler. The underlying issue is that ld64 will always pick a .dylib over a .a when both are available. So pointing at the libstdc++ .libs dir isn't enough - we'll still link with the dylib. AFAIK the only solution available is to mention the full path to the static lib on the command line. Since clang does not do this for us (no -static-libstdc++) we'd have to cook up our own and drive it from some config that determines we are bootstrapping with clang. [That might be a useful variable to have anyway]