This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: --enable-shared=libstdc++-v3 doesn't work
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Subject: Re: --enable-shared=libstdc++-v3 doesn't work
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 13 Jun 2001 00:34:42 -0300
- Cc: "Frédéric L. W. Meunier" <0 at pervalidus dot net>, <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.33.0106111242160.18758-100000@kern.srcf.societies.cam.ac.uk>
On Jun 11, 2001, "Joseph S. Myers" <jsm28@cam.ac.uk> wrote:
> On 10 Jun 2001, Alexandre Oliva wrote:
>> All libraries distributed with GCC default to shared where shared
>> libraries are supported. I'm afraid I don't have the list of
>> platforms that support shared libraries, and it would take me far more
>> time that I can volunteer to collect it. Besides, I'm not sure this
>> information would be really useful.
> We could at least say so in install.texi; update it to reflect the
> presence of shared libraries other than the C++ ones; indicate the subset
> of platforms supporting shared libgcc; and describe the
> --enable-shared=package syntax. (For example, does
> --disable-shared=package work? I don't know, but someone might reasonably
> want to disable only a particular shared library - the documentation is
> silent on this.)
How about this? Ok to install?
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* doc/install.texi (--enable-shared): List package names
recognized by GCC.
Index: gcc/doc/install.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/install.texi,v
retrieving revision 1.1.2.20
diff -u -p -r1.1.2.20 install.texi
--- gcc/doc/install.texi 2001/06/12 19:39:42 1.1.2.20
+++ gcc/doc/install.texi 2001/06/13 03:29:08
@@ -380,12 +380,24 @@ ideas of what it is for. People use it
install part of GCC. Perhaps they make this assumption because
installing GCC creates the directory.
-@item --enable-shared
-Build shared versions of the
-C++ runtime libraries if supported. This is the default on most
-systems. Use @option{--disable-shared} for static libraries. Note that
-up to the gcc version 2.95.x series, static libraries were the default
-on all systems.
+@item --enable-shared[=@var{package}[,...]]
+Build shared versions of libraries, if shared libraries are supported on
+the target platform. Unlike GCC 2.95.x and earlier, shared libraries
+are enabled by default on all platforms that support shared libraries.
+
+If a list of packages is given as an argument, build shared libraries
+only for the listed packages. For other packages, only static libraries
+will be built. Package names currently recognized in the GCC tree are
+@samp{libgcc} (also known as @samp{gcc}), @samp{libstdc++} (not
+@samp{libstdc++-v3}), @samp{libffi}, @samp{zlib}, @samp{boehm-gc} and
+@samp{libjava}. Note that @samp{libobjc} does not recognize itself by
+any name, so, if you list package names in @option{--enable-shared},
+you'll only get static Objective C libraries. @samp{libf2c} and
+@samp{libiberty} do not support shared libraries at all.
+
+Use @option{--disable-shared} to build only static libraries. Note that
+@option{--disable-shared} does not accept a list of package names as
+argument, only @option{--enable-shared} does.
@item @anchor{with-gnu-as}--with-gnu-as
Specify that the compiler should assume that the
--
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