Shared library annoyance with gcc-3_0-branch

Alexandre Oliva aoliva@redhat.com
Mon Feb 19 22:46:00 GMT 2001


On Feb 19, 2001, Andreas Jaeger <aj@suse.de> wrote:

> Mark Mitchell <mark@codesourcery.com> writes:
>> You can use -rpath if you want.  Or you can build --enable-static.  Or
>> you can use -static-libgcc.  Or you can use -static.

> AFAIK --enable-static builds all libs as static versions.

--enable-static is the default, as is --enable-shared.  What you want
is to --disable-shared selectively.  Libtool does support
--enable-shared=package,package,package..., so that it will only
enable shared libraries within the named packages (libstdc++-v3, for
example).  It appears to me that libgcc doesn't support this feature.
In fact, it appears to me that --enable-shared=gcc,libgcc,libstdc++-v3
would result in libgcc *not* being build as a shared library.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc mailing list