From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5865 invoked by alias); 6 Sep 2012 14:52:38 -0000 Received: (qmail 5846 invoked by uid 22791); 6 Sep 2012 14:52:36 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Sep 2012 14:52:24 +0000 From: "aaw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54482] failures in static linking with libstdc++, due to versioned symbols Date: Thu, 06 Sep 2012 14:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aaw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aaw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-09/txt/msg00474.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54482 Ollie Wild changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot |aaw at gcc dot gnu.org |gnu.org | --- Comment #1 from Ollie Wild 2012-09-06 14:52:23 UTC --- The best solution I could come up with was to patch libtool to enable passing options destined for only the shared or static library builds. See http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00340.html for the temporary workaround I've applied to the google/* branches. Getting this submitted to trunk is going to be a roundabout process. I need to patch libtool, import an updated libtool to gcc (last one was in 2009), and convert libstdc++ to use a macro other than PIC for identifying that it's being compiled as part of a shared library. If other people have better ideas, I'm all ears.