This is the mail archive of the
mailing list for the GCC project.
Re: g++ -static-libgcc not working (g++ 3.0.4).
- From: Phil Edwards <phil at jaj dot com>
- To: jean-frederic clere <jfrederic dot clere at fujitsu-siemens dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 5 Sep 2002 11:00:47 -0400
- Subject: Re: g++ -static-libgcc not working (g++ 3.0.4).
- References: <3D7748CF.firstname.lastname@example.org>
On Thu, Sep 05, 2002 at 02:06:39PM +0200, jean-frederic clere wrote:
> I am on a Solaris machine (5.8) and I am not using the gnu ld.
> I am trying to have a program linked staticly with libstdc++.a and libgcc.a.
> I have tried g++ -o program -static-libgcc ...
> But program still requires libstdc++.so.3 and libgcc_s.so.1
> I have tried to -static but it failed because g++ does find dlopen and relatives.
> Any ideas about what could be wrong?
Specify static linking for just the libraries you want statically linked,
and then revert to dynamic libraries for the rest. See the ld(1) man page
for -Bstatic and -Bdynamic.
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002