logo       

Static libstdc++ and dynamic libs: msg#00233

gcc.help

Subject: Static libstdc++ and dynamic libs

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@xxxxxx>
STMicroelectronics - DAIS




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise