This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Solaris 7/x86 shared libgcc?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]