This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compile using static libstdc++?
- To: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Subject: Compile using static libstdc++?
- From: Neil Bird <neil dot bird at uk dot thalesgroup dot com>
- Date: Wed, 04 Jul 2001 16:14:42 +0100
- Organization: Thales Sensors (but only on behalf of myself)
- Reply-To: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
Although I've compiled up gcc3 with the dynamic libstdc++.so
(as I want), I would like the default link behaviour to be the
'old' method of using the libstdc++.a.
I should be able to do this by surrounding the -lstdc++ with
-Bstatic & -Bdynamic (I think), and I'm hoping to put that in
the specs unless the user's explictly specified '-shared'
("%{!shared:...}").
Um. But I can't figure out how! The closest I've found is the
'%o' in the link_command spec.
Is there a more correct way of doing this (obviously, I don't
wish to force a fully-static link; I only wish for the C++ exe.
to be able to run without visibility of libstdc++.so).
This probably applies to libgcc_s.so as well ...
--
=================- http://www.thalesgroup.com/ -================
Neil Bird Principal Engineer |
work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub
personal - mailto:neil@fnxweb.com | $> more beer