Solaris 7/x86 shared libgcc?
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Mon Mar 6 17:06:00 GMT 2000
On Mar 6, 2000, Ben Taylor <bent@clark.net> wrote:
> When I link with libgcc.a, the shared library won't build because
> libgcc.a is a statically linked library.
What do you mean? It *is* possible to link shared libraries with
static libraries on Solaris. In fact, GCC builds libgcc with -fPIC so
that, even though libgcc is not a static library, all of its object
code is position-independent, and it can be added to shared libraries
without requiring relocation in code sections.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc
mailing list