From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25617 invoked by alias); 19 Oct 2011 19:53:50 -0000 Received: (qmail 25596 invoked by uid 22791); 19 Oct 2011 19:53:48 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-bw0-f47.google.com (HELO mail-bw0-f47.google.com) (209.85.214.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 19:53:34 +0000 Received: by bkat8 with SMTP id t8so2903375bka.20 for ; Wed, 19 Oct 2011 12:53:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.137.72 with SMTP id v8mr6075716bkt.35.1319054012868; Wed, 19 Oct 2011 12:53:32 -0700 (PDT) Received: by 10.205.115.138 with HTTP; Wed, 19 Oct 2011 12:53:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Oct 2011 19:53:00 -0000 Message-ID: Subject: Re: Compiling only libstdc++-v3 (with debugging symbols) From: Delcypher To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2011-10/txt/msg00183.txt.bz2 On 19 October 2011 17:50, Jonathan Wakely wrote: > On 19 October 2011 17:48, Jonathan Wakely wrote: >> >> Why? =C2=A0I've not heard of anyone trying to build only libstdc++ befor= e, My reason is simply that I wanted libstdc++ with debugging symbols on my machine as my distro (Arch Linux) seems to strip them. It seems perfectly reasonable to me to want to build only libstdc++ and not the whole gcc project because building the whole project is a complete waste of time seeing as I already have the other binaries compiled on my system from my distribution's packages. However as Ian very helpfully pointed out, I can only do this if I have the source code for libstdc++ that matches the version of g++ on my system. In other words I need to use the same source that my distro used to build my packages. It turned out my distribution requires me to modify the script that builds the gnu-libs package to not strip the debugging symbols, then compile, rebuild the gnu-libs package and then install this package. I did this and it showed quite nicely how my distribution builds its package containing libstdc++ . Dan.