[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing static link of libstdc++
From: |
Ralf Wildenhues |
Subject: |
Re: Forcing static link of libstdc++ |
Date: |
Wed, 20 Sep 2006 08:06:31 +0200 |
User-agent: |
Mutt/1.5.13 (2006-09-01) |
Hello Mike,
* Mike Melanson wrote on Tue, Sep 19, 2006 at 07:22:12PM CEST:
>
> Is it possible to configure the autotools to force a static link of a
> particular libstdc++ library, ideally via an elegant solution in the
> Makefile.am file?
I'm afraid you have to be more specific. Are you speaking about g++ and
its libstdc++ only? Is this on GNU/Linux only (why on earth would you
want to do that there?), or maybe AIX and libstdc++.a isn't static as
you may think? Are you using libtool? (You are not trying to link
libstdc++.a into a shared library, are you?)
I think in general using a static libstdc++ (as shipped with GCC) is
rarely a good idea. IIRC there are or were some things that definitely
did not work (but I may be wrong on this); and also there is definitely
a huge size overhead to the resulting binary.
One way to force it with g++ is to
./configure LDFLAGS=-static
but that may be just a bit too broad for your...
Cheers,
Ralf
- Forcing static link of libstdc++, Mike Melanson, 2006/09/19
- Re: Forcing static link of libstdc++,
Ralf Wildenhues <=
- Re: Forcing static link of libstdc++, Mike Melanson, 2006/09/20
- Re: Forcing static link of libstdc++, Ralf Wildenhues, 2006/09/20
- Re: Forcing static link of libstdc++, Mike Melanson, 2006/09/20
- Re: Forcing static link of libstdc++, Ralf Wildenhues, 2006/09/20
- Re: Forcing static link of libstdc++, Mike Melanson, 2006/09/20
- Re: Forcing static link of libstdc++, Ralf Wildenhues, 2006/09/20
- Re: Forcing static link of libstdc++, Andreas Schwab, 2006/09/20
- Re: Forcing static link of libstdc++, Bob Proulx, 2006/09/22
- Re: Forcing static link of libstdc++, Mike Melanson, 2006/09/22
- Re: Forcing static link of libstdc++, Bob Proulx, 2006/09/25