From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6628 invoked by alias); 6 Nov 2009 23:25:31 -0000 Received: (qmail 6588 invoked by uid 22791); 6 Nov 2009 23:25:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from mx20.gnu.org (HELO mx20.gnu.org) (199.232.41.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Nov 2009 23:25:26 +0000 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N6YBI-0004Ne-QR for gcc@gcc.gnu.org; Fri, 06 Nov 2009 18:25:25 -0500 Received: (qmail 6704 invoked from network); 6 Nov 2009 23:25:22 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Nov 2009 23:25:22 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1N6YBF-0004L9-B3; Fri, 06 Nov 2009 23:25:21 +0000 Date: Fri, 06 Nov 2009 23:25:00 -0000 From: "Joseph S. Myers" To: "Kaveh R. Ghazi" cc: Paolo Carlini , Ian Lance Taylor , Richard Guenther , Basile STARYNKEVITCH , Eric Botcazou , gcc@gcc.gnu.org Subject: Re: MPC version 0.8 released! In-Reply-To: <680715CE515C4158BD0AA03D51DFEF5B@glap> Message-ID: References: <200911061828.09787.ebotcazou@adacore.com> <4AF45EFD.4020304@oracle.com> <200911061844.09163.ebotcazou@adacore.com> <4AF46268.4040307@oracle.com> <4AF467EC.7030607@starynkevitch.net> <4AF46CC2.4090505@oracle.com> <84fc9c000911061050u4f211c70tce419a1b3f7554ed@mail.gmail.com> <4AF4730B.50603@oracle.com> <84fc9c000911061104y4efd4358u88f9e94afba95150@mail.gmail.com> <4AF473D1.10903@oracle.com> <4AF479E2.4000209@oracle.com> <680715CE515C4158BD0AA03D51DFEF5B@glap> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00178.txt.bz2 On Fri, 6 Nov 2009, Kaveh R. Ghazi wrote: > If I'm building these libraries myself, I get around this by always > configuring GMP/MPFR/MPC with --disable-shared. But I seem to recall that > shared libraries are mandatory for one of the other dependencies. (?) I > forget which one... You can link with static versions of all the host libraries, including libstdc++; I added --with-host-libstdcxx to make sure that was possible. I'd generally recommend doing so for whichever libraries you aren't getting pre-installed in system directories on your system. > I think a more general solution would be to use libtool to link cc1 et al. so > that the magic incantation to embed the rpath is done in a portable fashion. Linking with RPATHs is often not a good idea (there are uses for people building software for their own use, but distributors keep having to override it to avoid the RPATHs causing problems). However, if the user does want an RPATH, it's a great pain to embed a relative one using $ORIGIN; see for a suggestion on how to make that easier. -- Joseph S. Myers joseph@codesourcery.com