This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Static libstdc++ and dynamic libs
- From: Frédéric RISS <frederic dot riss at st dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: 26 May 2003 10:15:18 +0200
- Subject: Static libstdc++ and dynamic libs
- Organization: STMicroelectronics - DAIS
Hello,
We are coding in C++ and delivering some dynamic libraries to our
customers. Of course, the libraries we build depend on libstdc++.so, but
we would like to get rid of this dependency. What we would like to do is
to build our libfoo.so with a static libstdc++.a so that libfoo only
depends on libc.so.
I spent some time trying to make it work, but I'm not sure it's possible
to build a shared lib including a static one, so I ask here before I
waste too much time.
Is it possible ? If yes, is there any magic command line line option to
maker it work ?
Regards,
--
Frédéric RISS <frederic.riss@st.com>
STMicroelectronics - DAIS