This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MPC version 0.8 released!


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 <http://sourceware.org/ml/binutils/2009-10/msg00257.html> for 
a suggestion on how to make that easier.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]