This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Solaris 7/x86 shared libgcc?
- To: Ben Taylor <bent at clark dot net>
- Subject: Re: Solaris 7/x86 shared libgcc?
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 06 Mar 2000 22:06:39 -0300
- Cc: gcc at gcc dot gnu dot org
- References: <Pine.GSO.4.05.10003061517530.368-100000@shell.clark.net>
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