2000-04-22 04:33:34 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
2000-07-12 05:45:08 +08:00
|
|
|
<META NAME="AUTHOR" CONTENT="pme@sources.redhat.com (Phil Edwards)">
|
configopts.html, [...]: Remove many EGCS references...
* docs/configopts.html, docs/install.html, docs/17_intro/BADNAMES,
docs/17_intro/howto.html, docs/18_support/howto.html,
docs/19_diagnostics/howto.html, docs/20_util/howto.html,
docs/21_strings/howto.html, docs/22_locale/howto.html,
docs/23_containers/howto.html, docs/24_iterators/howto.html,
docs/25_algorithms/howto.html, docs/26_numerics/howto.html,
docs/27_io/howto.html, docs/ext/howto.html, docs/faq/index.html:
Remove many EGCS references; use current absolute URLs on
gcc.gnu.org or sources.redhat.com for messages in list archives.
* docs/faq/index.txt: Regenerate.
From-SVN: r36988
2000-10-21 08:51:50 +08:00
|
|
|
<META NAME="KEYWORDS" CONTENT="libstdc++, libstdc++-v3, GCC, g++">
|
2000-04-22 04:33:34 +08:00
|
|
|
<META NAME="DESCRIPTION" CONTENT="Configuration options for libstdc++-v3.">
|
|
|
|
<META NAME="GENERATOR" CONTENT="vi and eight fingers">
|
|
|
|
<TITLE>libstdc++-v3 configure options</TITLE>
|
|
|
|
<LINK REL=StyleSheet HREF="lib3styles.css">
|
configopts.html, [...]: Sync with wwwdocs.
* docs/configopts.html, docs/documentation.html,
docs/install.html, docs/17_intro/BADNAMES,
docs/17_intro/contribute.html, docs/17_intro/howto.html,
docs/18_support/howto.html, docs/19_diagnostics/howto.html,
docs/20_util/howto.html, docs/21_strings/howto.html,
docs/22_locale/howto.html, docs/23_containers/howto.html,
docs/24_iterators/howto.html, docs/25_algorithms/howto.html,
docs/26_numerics/howto.html, docs/27_io/howto.html,
docs/ext/howto.html, docs/faq/index.html, docs/faq/index.txt: Sync
with wwwdocs.
From-SVN: r37981
2000-12-04 07:47:49 +08:00
|
|
|
<!-- $Id: configopts.html,v 1.17 2000/11/29 20:37:02 pme Exp $ -->
|
2000-04-22 04:33:34 +08:00
|
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
|
|
|
|
<H1 CLASS="centered"><A NAME="top">Interesting <TT>configure</TT>
|
|
|
|
options</A></H1>
|
|
|
|
|
|
|
|
<P>The latest version of this document is always available at
|
configopts.html, [...]: Sync with wwwdocs.
* docs/configopts.html, docs/documentation.html,
docs/install.html, docs/17_intro/BADNAMES,
docs/17_intro/contribute.html, docs/17_intro/howto.html,
docs/18_support/howto.html, docs/19_diagnostics/howto.html,
docs/20_util/howto.html, docs/21_strings/howto.html,
docs/22_locale/howto.html, docs/23_containers/howto.html,
docs/24_iterators/howto.html, docs/25_algorithms/howto.html,
docs/26_numerics/howto.html, docs/27_io/howto.html,
docs/ext/howto.html, docs/faq/index.html, docs/faq/index.txt: Sync
with wwwdocs.
From-SVN: r37981
2000-12-04 07:47:49 +08:00
|
|
|
<A HREF="http://gcc.gnu.org/libstdc++/configopts.html">
|
|
|
|
http://gcc.gnu.org/libstdc++/configopts.html</A>.
|
2000-04-22 04:33:34 +08:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>To the <A HREF="index.html">libstdc++-v3 homepage</A>.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ####################################################### -->
|
|
|
|
<HR>
|
|
|
|
<P>Here are some of the non-obvious options to libstdc++'s configure.
|
|
|
|
Keep in mind that
|
2000-05-10 04:25:13 +08:00
|
|
|
<!-- This SECnn should be the "Choosing Package Options" section. -->
|
2000-07-12 05:45:08 +08:00
|
|
|
<A HREF="http://sources.redhat.com/autoconf/autoconf.html#SEC74">they
|
2000-04-22 04:33:34 +08:00
|
|
|
all have opposite forms as well</A>
|
|
|
|
(enable/disable and with/without). The defaults are for the latest
|
|
|
|
snapshot, 2.90.8.
|
2000-10-16 08:20:42 +08:00
|
|
|
</P>
|
|
|
|
<P>The canonical way to find out the configure options that are
|
2000-08-09 15:33:39 +08:00
|
|
|
available for a given set of libstdc++ sources is to go to the
|
2000-10-16 08:20:42 +08:00
|
|
|
source directory and then type:<TT> ./configure --help</TT>
|
2000-08-09 15:33:39 +08:00
|
|
|
|
2000-04-22 04:33:34 +08:00
|
|
|
<DL>
|
|
|
|
<DT><TT>--enable-multilib </TT>[default]
|
2000-10-16 08:20:42 +08:00
|
|
|
<DD><P>This is part of the generic multilib support for building cross
|
|
|
|
compilers. As such, targets like "powerpc-elf" will have
|
|
|
|
libstdc++ built many different ways: "-msoft-float"
|
|
|
|
and not, etc. A different libstdc++ will be built for each of
|
|
|
|
the different multilib versions. This option is on by default.
|
2000-04-22 04:33:34 +08:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<DT><TT>--enable-debug </TT>
|
|
|
|
<DD><P>The configure script will automatically detect the highest level
|
|
|
|
of optimization that the compiler in use can use (certain
|
|
|
|
versions of g++ will ICE if given the <TT>-O2</TT> option, but
|
|
|
|
this is fixed in later versions of the compiler). This --enable
|
|
|
|
flag will disable all optimizations and instruct the compiler to
|
|
|
|
emit as much extra debugging information as it can, for use
|
|
|
|
inside GDB.
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<DT><TT>--enable-cstdio </TT>[default]
|
|
|
|
<DD><P>This is an abbreviated form of <TT>'--enable-cstdio=libio'</TT>
|
|
|
|
(described next).
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<DT><TT>--enable-cstdio=LIB </TT>
|
|
|
|
<DD><P>Select a target-specific I/O package. As of libstdc++-v3
|
|
|
|
snapshot 2.90.8, the choices are 'libio' to specify the GNU
|
|
|
|
I/O package (from
|
2000-07-12 05:45:08 +08:00
|
|
|
<A HREF="http://sources.redhat.com/glibc/">glibc</A>, the
|
2000-11-02 05:38:32 +08:00
|
|
|
GNU C library), or 'stdio' to use a generic "C" abstraction.
|
2000-04-22 04:33:34 +08:00
|
|
|
</P>
|
|
|
|
|
2000-05-20 03:55:50 +08:00
|
|
|
<DT><TT>--enable-long-long </TT>
|
2000-04-22 04:33:34 +08:00
|
|
|
<DD><P>The "long long" type was introduced in C99. It is
|
|
|
|
provided as a GNU extension to C++98 in g++. This flag builds
|
|
|
|
support for "long long" into the library (specialized
|
|
|
|
templates and the like).
|
|
|
|
</P>
|
|
|
|
|
2000-05-20 03:55:50 +08:00
|
|
|
<DT><TT>--enable-cshadow-headers </TT>
|
configopts.html: Edit.
2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
* libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libio/Makefile.in: Regenerate.
* libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.am (INCLUDES): Remove duplicate.
* libsupc++/Makefile.in: Regenerate.
* Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
CSHADOW_INCLUDES up here.
* Makefile.in: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
for shadow headers.
(myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
* src/Makefile.in: Regenerate.
* include/c: New directory.
* include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
std_cwchar.h, std_cwctype.h): Add, moving from...
* include/bits: ...here.
* include/c_std: New directory.
* include/c_std/bits/*: Populate from...
* shadow: ...here. Remove directory.
From-SVN: r36805
2000-10-09 16:55:06 +08:00
|
|
|
<DD><P>This turns on the code to construct shadowed C headers, and to
|
|
|
|
use c headers in the std:: namespace. Very experimental as of
|
|
|
|
this writing.
|
2000-05-17 01:06:39 +08:00
|
|
|
</P>
|
|
|
|
|
2000-04-22 04:33:34 +08:00
|
|
|
<DT><TT>--enable-threads </TT>
|
|
|
|
<DD><P>This is an abbreviated form of <TT>'--enable-threads=yes'</TT>
|
|
|
|
(described next).
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<DT><TT>--enable-threads=LIB </TT>
|
|
|
|
<DD><P>Select a threading library. As of libstdc++-v3 snapshot 2.90.8,
|
|
|
|
the choices are:
|
|
|
|
'yes' for some kind of default (hmmmmm);
|
|
|
|
'decosf1', 'irix', 'mach', 'os2', 'posix'/'pthreads'
|
|
|
|
(same thing),
|
|
|
|
'solaris', 'win32', 'dce', or 'vxworks' to select the
|
|
|
|
corresponding interface;
|
|
|
|
and 'single', 'no', or 'none' for the null-case,
|
|
|
|
single-threaded library.
|
|
|
|
</P>
|
|
|
|
<P>All of this is currently undergoing a lot of changes. As of
|
|
|
|
2.90.8, 'single' and 'posix' are the only implemented models.
|
|
|
|
</P>
|
|
|
|
|
2000-10-25 22:41:16 +08:00
|
|
|
<DT><TT>--enable-version-specific-runtime-libs </TT>
|
|
|
|
<DD><P>Specify that run-time libraries should be installed in the
|
|
|
|
compiler-specific subdirectory (i.e.,
|
|
|
|
<TT>$(libdir)/gcc-lib/$(target_alias)/$(gcc_version)</TT>)
|
|
|
|
instead of <TT>$(libdir)</TT>. This option is useful if you
|
|
|
|
intend to use several versions of gcc in parallel. In addition,
|
|
|
|
libstdc++'s include files will be installed in
|
|
|
|
<TT>$(libdir)/gcc-lib/$(target_alias)/$(gcc_version)/include/g++</TT>,
|
|
|
|
unless you also specify
|
|
|
|
<TT>--with-gxx-include-dir=_dirname_</TT> during configuration.
|
2000-10-15 16:45:33 +08:00
|
|
|
</P>
|
|
|
|
|
2000-10-25 22:41:16 +08:00
|
|
|
|
2000-10-16 08:20:42 +08:00
|
|
|
<DT><TT>--with-gxx-include-dir=<include-files dir></TT>
|
|
|
|
<DD><P>Adds support for named libstdc++ include directory. For instance,
|
|
|
|
the following puts all the libstdc++ headers into a directory
|
|
|
|
called "2.97-20001008" instead of the usual
|
|
|
|
"g++-v3".
|
|
|
|
<PRE>
|
|
|
|
--with-gxx-include-dir=/foo/H-x86-gcc-3-c-gxx-inc/include/2.97-20001008</PRE>
|
2000-10-15 16:45:33 +08:00
|
|
|
</P>
|
|
|
|
|
2000-05-10 04:25:13 +08:00
|
|
|
<DT><TT>--enable-cxx-flags=FLAGS</TT>
|
2000-04-22 04:33:34 +08:00
|
|
|
<DD><P>With this option, you can pass a string of -f (functionality)
|
|
|
|
flags to the compiler to use when building libstdc++. FLAGS
|
|
|
|
is a quoted string of options, like
|
|
|
|
<PRE>
|
2000-05-10 04:25:13 +08:00
|
|
|
--enable-cxx-flags='-fsquangle -fvtable-gc -ansi'</PRE>
|
2000-04-22 04:33:34 +08:00
|
|
|
Note that the flags don't necessarily have to all be -f flags,
|
|
|
|
as shown, but usually those are the ones that will make sense
|
|
|
|
for experimentation and configure-time overriding.
|
|
|
|
</P>
|
2000-05-10 04:25:13 +08:00
|
|
|
<P>The advantage of --enable-cxx-flags over setting CXXFLAGS in
|
2000-04-22 04:33:34 +08:00
|
|
|
the 'make' environment is that, if libgcc is automatically
|
|
|
|
rebuilt, the same flags will be used when compiling those files
|
|
|
|
as well, so that everything matches.
|
|
|
|
</P>
|
|
|
|
<P>Fun flags to try might include combinations of
|
|
|
|
<PRE>
|
|
|
|
-fstrict-aliasing
|
|
|
|
-fnew-abi
|
|
|
|
-fnew-exceptions
|
|
|
|
-ffunction-sections
|
|
|
|
-fvtable-gc</PRE>
|
|
|
|
and -fno- forms of the same. Tell us (the mailing list) if
|
|
|
|
you discover more!
|
|
|
|
</P>
|
2000-08-29 02:41:24 +08:00
|
|
|
|
|
|
|
<DT><TT>--enable-wchar </TT>[default]
|
|
|
|
<DD><P>Certain template specializations are required for wide character
|
|
|
|
conversion support. This is tricky and currently changing rapidly,
|
|
|
|
and can cause problems on new platforms. Disabling wide character
|
|
|
|
specializations is useful for initial porting steps, but builds
|
|
|
|
only a subset of what is required by ISO.
|
|
|
|
</P>
|
2000-04-22 04:33:34 +08:00
|
|
|
</DL>
|
|
|
|
</P>
|
2000-07-12 05:45:08 +08:00
|
|
|
<P>Return <A HREF="#top">to the top of the page</A> or
|
2000-04-22 04:33:34 +08:00
|
|
|
<A HREF="index.html">to the homepage</A>.
|
|
|
|
</P>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ####################################################### -->
|
|
|
|
|
|
|
|
<HR>
|
|
|
|
<P CLASS="fineprint"><EM>
|
configopts.html, [...]: Sync with wwwdocs.
* docs/configopts.html, docs/documentation.html,
docs/install.html, docs/17_intro/BADNAMES,
docs/17_intro/contribute.html, docs/17_intro/howto.html,
docs/18_support/howto.html, docs/19_diagnostics/howto.html,
docs/20_util/howto.html, docs/21_strings/howto.html,
docs/22_locale/howto.html, docs/23_containers/howto.html,
docs/24_iterators/howto.html, docs/25_algorithms/howto.html,
docs/26_numerics/howto.html, docs/27_io/howto.html,
docs/ext/howto.html, docs/faq/index.html, docs/faq/index.txt: Sync
with wwwdocs.
From-SVN: r37981
2000-12-04 07:47:49 +08:00
|
|
|
$Id: configopts.html,v 1.17 2000/11/29 20:37:02 pme Exp $
|
2000-04-22 04:33:34 +08:00
|
|
|
</EM></P>
|
|
|
|
|
|
|
|
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|