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: Shared library annoyance with gcc-3_0-branch


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


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