
2005-12-18 Benjamin Kosnik <bkoz@redhat.com> * include/bits/c++config: Add in revised namespace associations. _GLIBCXX_BEGIN_NAMESPACE: New macro. _GLIBCXX_END_NAMESPACE: Same. _GLIBCXX_BEGIN_NESTED_NAMESPACE: Same. _GLIBCXX_END_NESTED_NAMESPACE: Same. * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS]): Add gnu-versioned-namespace. * configure: Regenerated. * config.h.in: Same. * config/abi/pre/gnu-versioned-namespace.ver: New. * config/abi/pre/gnu.ver (GLIBCXX_3.4.7): Add exports for nested debug mode items. * include/Makefile.am (${host_builddir}/c++config.h): Fill in values for __GLIBCXX__ and _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION. * include/Makefile.in: Regnerate. * src/compatibility.cc: Alias new, nested definitions to exported symbols from non-nested __gnu_debug. * src/Makefile.am: Add in ENABLE_SYMVERS_GNU_NAMESPACE. * src/Makefile.in: Regenerate. * docs/html/debug_mode.html: Revise for nested design. * docs/html/debug.html: Use debug qualifications instead of __gnu_debug. * docs/html/configopts.html: Revise documentation for --enable-symvers. * include/debug/formatter: Simplify namespace qualifications for current, nested-only reality. Add top-level namespace alias, namespace debug, for debug-mode containers. * include/debug/safe_iterator.h: Same. * include/debug/set.h: Same. * include/debug/hash_multimap.h: Same. * include/debug/hash_set.h: Same. * include/debug/bitset * include/debug/safe_sequence.h: Same. * include/debug/multiset.h: Same. * include/debug/safe_base.h: Same. * include/debug/functions.h: Same. * include/debug/safe_iterator.tcc * include/debug/hash_multiset.h: Same. * include/debug/vector * include/debug/map.h: Same. * include/debug/deque * include/debug/hash_map.h: Same. * include/debug/string * include/debug/macros.h: Same. * include/debug/list * include/debug/debug.h: Same. * include/debug/multimap.h: Same. * src/debug.cc: Same. * testsuite/23_containers/vector/invalidation/1.cc: Cleanups. * testsuite/23_containers/vector/invalidation/2.cc: Same. * testsuite/23_containers/vector/invalidation/3.cc: Same. * testsuite/23_containers/vector/invalidation/4.cc: Same. * testsuite/23_containers/deque/invalidation/1.cc: Same. * testsuite/23_containers/deque/invalidation/2.cc: Same. * testsuite/23_containers/deque/invalidation/3.cc: Same. * testsuite/23_containers/deque/invalidation/4.cc: Same. * testsuite/23_containers/multiset/invalidation/1.cc: Same. * testsuite/23_containers/multiset/invalidation/2.cc: Same. * testsuite/23_containers/multimap/invalidation/1.cc: Same. * testsuite/23_containers/multimap/invalidation/2.cc: Same. * testsuite/23_containers/bitset/invalidation/1.cc: Same. * testsuite/23_containers/bitset/cons/16020.cc: Same. * testsuite/23_containers/bitset/operations/13838.cc: Same. * testsuite/23_containers/list/invalidation/1.cc: Same. * testsuite/23_containers/list/invalidation/2.cc: Same. * testsuite/23_containers/list/invalidation/3.cc: Same. * testsuite/23_containers/list/invalidation/4.cc: Same. * testsuite/23_containers/set/invalidation/1.cc: Same. * testsuite/23_containers/set/invalidation/2.cc: Same. * testsuite/23_containers/map/invalidation/1.cc: Same. * testsuite/23_containers/map/invalidation/2.cc: Same. * testsuite/23_containers/map/insert/16813.cc: Same. * include/bits/basic_ios.h: Use _GLIBCXX_BEGIN_NAMESPACE(std) and friends. * include/bits/stl_list.h: Same. * include/bits/stl_map.h: Same. * include/bits/stl_algobase.h: Same. * include/bits/localefwd.h: Same. * include/bits/valarray_array.tcc: Same. * include/bits/valarray_after.h: Same. * include/bits/gslice_array.h: Same. * include/bits/stl_queue.h: Same. * include/bits/gslice.h: Same. * include/bits/locale_facets.tcc: Same. * include/bits/locale_classes.h: Same. * include/bits/stl_set.h: Same. * include/bits/locale_facets.h: Same. * include/bits/stl_stack.h: Same. * include/bits/stl_iterator_base_types.h: Same. * include/bits/stl_heap.h: Same. * include/bits/indirect_array.h: Same. * include/bits/atomicity.h: Same. * include/bits/stream_iterator.h: Same. * include/bits/concurrence.h: Same. * include/bits/basic_string.h: Same. * include/bits/stl_multimap.h: Same. * include/bits/stl_pair.h: Same. * include/bits/basic_ios.tcc: Same. * include/bits/stl_raw_storage_iter.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_numeric.h: Same. * include/bits/ios_base.h: Same. * include/bits/stl_deque.h: Same. * include/bits/istream.tcc: Same. * include/bits/postypes.h: Same. * include/bits/stl_multiset.h: Same. * include/bits/mask_array.h: Same. * include/bits/stl_uninitialized.h: Same. * include/bits/ostream.tcc: Same. * include/bits/slice_array.h: Same. * include/bits/boost_concept_check.h: Same. * include/bits/sstream.tcc: Same. * include/bits/stl_iterator_base_funcs.h: Same. * include/bits/char_traits.h: Same. * include/bits/stl_algo.h: Same. * include/bits/stringfwd.h: Same. * include/bits/c++config * include/bits/stl_iterator.h: Same. * include/bits/valarray_array.h: Same. * include/bits/stl_tempbuf.h: Same. * include/bits/vector.tcc: Same. * include/bits/deque.tcc: Same. * include/bits/stl_bvector.h: Same. * include/bits/basic_string.tcc: Same. * include/bits/list.tcc: Same. * include/bits/streambuf_iterator.h: Same. * include/bits/valarray_before.h: Same. * include/bits/stl_construct.h: Same. * include/bits/stl_function.h: Same. * include/bits/cpp_type_traits.h: Same. * include/bits/streambuf.tcc: Same. * include/bits/allocator.h: Same. * include/bits/stl_tree.h: Same. * include/bits/fstream.tcc: Same. * include/bits/stl_relops.h: Same. * include/bits/functexcept.h: Same. * include/std/std_valarray.h: Same. * include/std/std_iostream.h: Same. * include/std/std_streambuf.h: Same. * include/std/std_bitset.h: Same. * include/std/std_iosfwd.h: Same. * include/std/std_iomanip.h: Same. * include/std/std_fstream.h: Same. * include/std/std_limits.h: Same. * include/std/std_stdexcept.h: Same. * include/std/std_istream.h: Same. * include/std/std_complex.h: Same. * include/std/std_memory.h: Same. * include/std/std_ostream.h: Same. * include/std/std_sstream.h: Same. * include/c_std/std_csignal.h: Same. * include/c_std/std_cstdlib.h: Same. * include/c_std/std_cstdio.h: Same. * include/c_std/std_cstdarg.h: Same. * include/c_std/std_cctype.h: Same. * include/c_std/std_cmath.h: Same. * include/c_std/std_ctime.h: Same. * include/c_std/std_clocale.h: Same. * include/c_std/std_csetjmp.h: Same. * include/c_std/std_cwchar.h: Same. * include/c_std/std_cstring.h: Same. * include/c_std/std_cstddef.h: Same. * include/c_std/std_cwctype.h: Same. * include/backward/iterator.h: Same. * include/backward/set.h: Same. * include/backward/hashtable.h: Same. * include/backward/fstream.h: Same. * include/backward/tempbuf.h: Same. * include/backward/istream.h: Same. * include/backward/bvector.h: Same. * include/backward/stack.h: Same. * include/backward/rope.h: Same. * include/backward/complex.h: Same. * include/backward/ostream.h: Same. * include/backward/heap.h: Same. * include/backward/iostream.h: Same. * include/backward/function.h: Same. * include/backward/multimap.h: Same. * include/backward/pair.h: Same. * include/backward/stream.h: Same. * include/backward/iomanip.h: Same. * include/backward/strstream * include/backward/slist.h: Same. * include/backward/tree.h: Same. * include/backward/vector.h: Same. * include/backward/deque.h: Same. * include/backward/multiset.h: Same. * include/backward/list.h: Same. * include/backward/map.h: Same. * include/backward/algobase.h: Same. * include/backward/hash_map.h: Same. * include/backward/algo.h: Same. * include/backward/queue.h: Same. * include/backward/streambuf.h: Same. * src/allocator-inst.cc: Same. * src/complex_io.cc: Same. * src/localename.cc: Same. * src/limits.cc: Same. * src/ios_failure.cc: Same. * src/locale-misc-inst.cc: Same. * src/streambuf-inst.cc: Same. * src/misc-inst.cc: Same. * src/concept-inst.cc: Same. * src/ios_locale.cc: Same. * src/pool_allocator.cc: Same. * src/fstream-inst.cc: Same. * src/istream-inst.cc: Same. * src/string-inst.cc: Same. * src/locale_init.cc: Same. * src/ctype.cc: Same. * src/strstream.cc: Same. * src/ostream-inst.cc: Same. * src/functexcept.cc: Same. * src/streambuf.cc: Same. * src/sstream-inst.cc: Same. * src/ios.cc: Same. * src/valarray-inst.cc: Same. * src/locale.cc: Same. * src/tree.cc: Same. * src/stdexcept.cc: Same. * src/istream.cc: Same. * src/compatibility.cc: Same. * src/locale-inst.cc: Same. * src/globals_io.cc: Same. * src/list.cc: Same. * src/ios_init.cc: Same. * src/locale_facets.cc: Same. * src/codecvt.cc: Same. * include/tr1/unordered_map: Use _GLIBCXX_BEGIN_NAMESPACE(tr1). * include/tr1/boost_shared_ptr.h: Same. * include/tr1/tuple * include/tr1/hashtable * include/tr1/type_traits_fwd.h: Same. * include/tr1/unordered_set * include/tr1/functional * include/tr1/ref_fwd.h: Same. * include/tr1/utility * include/tr1/type_traits * include/tr1/array * include/ext/hashtable.h: Use _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx). * include/ext/typelist.h: Same. * include/ext/hash_map: Same. * include/ext/rc_string_base.h: Same. * include/ext/pool_allocator.h: Same. * include/ext/iterator: Same. * include/ext/rb_tree: Same. * include/ext/numeric: Same. * include/ext/vstring.tcc: Same. * include/ext/sso_string_base.h: Same. * include/ext/stdio_filebuf.h: Same. * include/ext/algorithm: Same. * include/ext/codecvt_specializations.h: Same. * include/ext/new_allocator.h: Same. * include/ext/array_allocator.h: Same. * include/ext/vstring_util.h: Same. * include/ext/vstring_fwd.h: Same. * include/ext/mt_allocator.h: Same. * include/ext/debug_allocator.h: Same. * include/ext/slist: Same. * include/ext/stdio_sync_filebuf.h: Same. * include/ext/hash_fun.h: Same. * include/ext/malloc_allocator.h: Same. * include/ext/functional: Same. * include/ext/bitmap_allocator.h: Same. * include/ext/pod_char_traits.h: Same. * include/ext/vstring.h: Same. * include/ext/ropeimpl.h: Same. * include/ext/hash_set: Same. * include/ext/memory: Same. * include/ext/rope: Same. * include/bits/boost_concept_check.h: Same. * include/bits/stl_iterator.h: Same. * include/bits/char_traits.h: Same. * include/bits/cpp_type_traits.h: Same. * include/bits/concurrence.h: Same. * include/bits/atomicity.h: Same. * config/locale/gnu/numeric_members.cc: Same. * config/locale/gnu/collate_members.cc: Same. * config/locale/gnu/ctype_members.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/gnu/codecvt_members.cc: Same. * config/locale/gnu/messages_members.cc: Same. * config/locale/gnu/c_locale.h: Same. * config/locale/gnu/monetary_members.cc: Same. * config/locale/gnu/time_members.cc: Same. * config/locale/ieee_1003.1-2001/c_locale.h: Same. * config/locale/generic/numeric_members.cc: Same. * config/locale/generic/collate_members.cc: Same. * config/locale/generic/ctype_members.cc: Same. * config/locale/generic/c_locale.cc: Same. * config/locale/generic/codecvt_members.cc: Same. * config/locale/generic/messages_members.cc: Same. * config/locale/generic/c_locale.h: Same. * config/locale/generic/monetary_members.cc: Same. * config/locale/generic/time_members.cc: Same. * config/os/aix/atomicity.h: Same. * config/os/irix/atomicity.h: Same. * config/cpu/powerpc/atomicity.h: Same. * config/cpu/cris/atomicity.h: Same. * config/cpu/ia64/atomicity.h: Same. * config/cpu/alpha/atomicity.h: Same. * config/cpu/m68k/atomicity.h: Same. * config/cpu/hppa/atomicity.h: Same. * config/cpu/mips/atomicity.h: Same. * config/cpu/sparc/atomicity.h: Same. * config/cpu/i386/atomicity.h: Same. * config/cpu/i486/atomicity.h: Same. * config/cpu/sh/atomicity.h: Same. * config/cpu/generic/atomicity.h: Same. * config/cpu/s390/atomicity.h: Same. * config/io/c_io_stdio.h: Same. * config/io/basic_file_stdio.cc: Same. * config/io/basic_file_stdio.h: Same. * src/misc-inst.cc: Same. * src/concept-inst.cc: Same. * src/ext-inst.cc: Same. * src/string-inst.cc: Same. * src/pool_allocator.cc: Same. * src/bitmap_allocator.cc: Same. * src/mt_allocator.cc: Same. * libsupc++/exception: Same. * libsupc++/vterminate.cc: Same. * testsuite/ext/hash_map/1.cc: Explicitly qualify __gnu_cxx::hash_map. * testsuite/ext/hash_map/14648.cc: Same. * libsupc++/eh_alloc.cc: Correct comment line spacing. From-SVN: r108775
330 lines
14 KiB
HTML
330 lines
14 KiB
HTML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta name="AUTHOR" content="pme@gcc.gnu.org (Phil Edwards)" />
|
|
<meta name="KEYWORDS" content="libstdc++, libstdc++-v3, GCC, g++" />
|
|
<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" type="text/css" />
|
|
<link rel="Copyright" href="17_intro/license.html" type="text/html" />
|
|
</head>
|
|
<body>
|
|
|
|
<h1 class="centered"><a name="top">Interesting <code>configure</code>
|
|
options</a></h1>
|
|
|
|
<p class="fineprint"><em>
|
|
The latest version of this document is always available at
|
|
<a href="http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html">
|
|
http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html</a>.
|
|
</em></p>
|
|
|
|
<p><em>
|
|
To the <a href="http://gcc.gnu.org/libstdc++/">libstdc++-v3 homepage</a>.
|
|
</em></p>
|
|
|
|
<!-- ####################################################### -->
|
|
<hr />
|
|
<p>Here are some of the non-obvious options to libstdc++'s configure.
|
|
Keep in mind that
|
|
<!-- This SECnn should be the "Choosing Package Options" section. -->
|
|
<a href="http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_131.html#SEC131">they
|
|
all have opposite forms as well</a>
|
|
(enable/disable and with/without). The defaults are for <strong>current
|
|
development sources</strong>, which may be different than those for
|
|
released versions.
|
|
</p>
|
|
<p>The canonical way to find out the configure options that are
|
|
available for a given set of libstdc++ sources is to go to the
|
|
source directory and then type:<code> ./configure --help</code>
|
|
</p>
|
|
|
|
<dl>
|
|
<dt><code>--enable-multilib </code>[default]</dt>
|
|
<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.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-sjlj-exceptions </code></dt>
|
|
<dd><p>Forces old, set-jump/long-jump exception handling model. If
|
|
at all possible, the new, frame unwinding exception handling routines
|
|
should be used instead, as they significantly reduce both
|
|
runtime memory usage and executable size. This option can
|
|
change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-version-specific-runtime-libs </code></dt>
|
|
<dd><p>Specify that run-time libraries should be installed in the
|
|
compiler-specific subdirectory (i.e.,
|
|
<code>${libdir}/gcc-lib/${target_alias}/${gcc_version}</code>)
|
|
instead of <code>${libdir}</code>. 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
|
|
<code>${libdir}/gcc-lib/${target_alias}/${gcc_version}/include/g++</code>,
|
|
unless you also specify
|
|
<code>--with-gxx-include-dir=<em>dirname</em></code> during configuration.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--with-gxx-include-dir=<include-files dir></code></dt>
|
|
<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
|
|
"c++/(version)".
|
|
</p>
|
|
<pre>
|
|
--with-gxx-include-dir=/foo/H-x86-gcc-3-c-gxx-inc/include/2.97-20001008</pre> </dd>
|
|
|
|
<dt><code>--enable-cstdio </code></dt>
|
|
<dd><p>This is an abbreviated form of <code>'--enable-cstdio=stdio'</code>
|
|
(described next). This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-cstdio=OPTION </code></dt>
|
|
<dd><p>Select a target-specific I/O package. At the moment, the only
|
|
choice is to use 'stdio', a generic "C" abstraction.
|
|
The default is 'stdio'. A longer explanation is <a
|
|
href="explanations.html#cstdio">here</a>.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-clocale </code></dt>
|
|
<dd><p>This is an abbreviated form of <code>'--enable-clocale=generic'</code>
|
|
(described next). This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-clocale=OPTION </code></dt>
|
|
<dd><p>Select a target-specific underlying locale package. The
|
|
choices are 'ieee_1003.1-2001' to specify an X/Open, Standard Unix
|
|
(IEEE Std. 1003.1-2001) model based on langinfo/iconv/catgets,
|
|
'gnu' to specify a model based on functionality from the GNU C
|
|
library (langinfo/iconv/gettext) (from <a
|
|
href="http://sources.redhat.com/glibc/">glibc</a>, the GNU C
|
|
library), or 'generic' to use a generic "C"
|
|
abstraction which consists of "C" locale info.
|
|
</p>
|
|
|
|
<p>As part of the configuration process, the "C" library is
|
|
probed both for sufficient vintage, and installed locale
|
|
data. If either of these elements are not present, the C++
|
|
locale model default to 'generic.' On glibc-based systems of
|
|
version 2.2.5 and above with installed locale files, 'gnu' is
|
|
automatically selected.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-libstdcxx-allocator </code></dt>
|
|
<dd><p>This is an abbreviated form of
|
|
<code>'--enable-libstdcxx-allocator=auto'</code> (described
|
|
next). This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-libstdcxx-allocator=OPTION </code></dt>
|
|
<dd><p>Select a target-specific underlying std::allocator. The
|
|
choices are 'new' to specify a wrapper for new, 'malloc' to
|
|
specify a wrapper for malloc, 'mt' for a fixed power of two allocator
|
|
(<a href="ext/mt_allocator.html">documented</a> under extensions),
|
|
'pool' for the SGI pooled allocator or 'bitmap' for a bitmap allocator.
|
|
This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-cheaders=OPTION </code></dt>
|
|
<dd><p>This allows the user to define what kind of C headers are
|
|
used. Options are c and c_std. These correspond to the source
|
|
directory's include/c and include/c_std. The default is c_std.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-threads </code></dt>
|
|
<dd><p>This is an abbreviated form of <code>'--enable-threads=yes'</code>
|
|
(described next). This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-threads=OPTION </code></dt>
|
|
<dd><p>Select a threading library. A full description is given in the
|
|
general <a href="http://gcc.gnu.org/install/configure.html">compiler
|
|
configuration instructions</a>.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-libstdcxx-debug </code></dt>
|
|
<dd><p>Build separate debug libraries in addition to what is normally built.
|
|
By default, the debug libraries are compiled with
|
|
<code> CXXFLAGS='-g3 -O0'</code>
|
|
, are installed in <code>${libdir}/debug</code>, and have the
|
|
same names and versioning information as the non-debug
|
|
libraries. This option is off by default.
|
|
</p>
|
|
<p>Note this make command, executed in
|
|
the build directory, will do much the same thing, without the
|
|
configuration difference and without building everything twice:
|
|
<code>make CXXFLAGS='-g3 -O0' all</code>
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-libstdcxx-debug-flags=FLAGS</code></dt>
|
|
|
|
<dd><p>This option is only valid when <code> --enable-debug </code>
|
|
is also specified, and applies to the debug builds only. With
|
|
this option, you can pass a specific string of flags to the
|
|
compiler to use when building the debug versions of libstdc++.
|
|
FLAGS is a quoted string of options, like
|
|
</p>
|
|
<pre>
|
|
--enable-libstdcxx-debug-flags='-g3 -O1 -gdwarf-2'</pre>
|
|
</dd>
|
|
|
|
<dt><code>--enable-cxx-flags=FLAGS</code></dt>
|
|
<dd><p>With this option, you can pass a string of -f (functionality)
|
|
flags to the compiler to use when building libstdc++. This
|
|
option can change the library ABI. FLAGS is a quoted string of
|
|
options, like
|
|
</p>
|
|
<pre>
|
|
--enable-cxx-flags='-fvtable-gc -fomit-frame-pointer -ansi'</pre>
|
|
<p>
|
|
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>
|
|
<p>The advantage of --enable-cxx-flags over setting CXXFLAGS in
|
|
the 'make' environment is that, if files are 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
|
|
</p>
|
|
<pre>
|
|
-fstrict-aliasing
|
|
-fno-exceptions
|
|
-ffunction-sections
|
|
-fvtable-gc</pre>
|
|
<p>and opposite forms (-fno-) of the same. Tell us (the libstdc++
|
|
mailing list) if you discover more!
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-c99 </code></dt>
|
|
<dd><p>The "long long" type was introduced in C99, along
|
|
with many other functions for wide characters, and math
|
|
classification macros, etc. If enabled, all C99 functions not
|
|
specified by the C++ standard will be put into <code>namespace
|
|
__gnu_cxx</code>, and then all these names will
|
|
be injected into namespace std, so that C99 functions can be
|
|
used "as if" they were in the C++ standard (as they
|
|
will eventually be in some future revision of the standard,
|
|
without a doubt). By default, C99 support is on, assuming the
|
|
configure probes find all the necessary functions and bits
|
|
necessary. This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-wchar_t </code>[default]</dt>
|
|
<dd><p>Template specializations for the "wchar_t" type are
|
|
required for wide character conversion support. Disabling
|
|
wide character specializations may be expedient for initial
|
|
porting efforts, but builds only a subset of what is required by
|
|
ISO, and is not recommended. By default, this option is on.
|
|
This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-long-long </code></dt>
|
|
<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 for iostreams). This option is on by default:
|
|
if enabled, users will have to either use the new-style "C"
|
|
headers by default (i.e., <cmath> not <math.h>)
|
|
or add appropriate compile-time flags to all compile lines to
|
|
allow "C" visibility of this feature (on GNU/Linux,
|
|
the flag is -D_ISOC99_SOURCE, which is added automatically via
|
|
CPLUSPLUS_CPP_SPEC's addition of _GNU_SOURCE).
|
|
This option can change the library ABI.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-fully-dynamic-string </code></dt>
|
|
<dd><p>This option enables a special version of basic_string avoiding
|
|
the optimization that allocates empty objects in static memory.
|
|
Mostly useful together with shared memory allocators, see PR
|
|
libstdc++/16612 for details.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-concept-checks </code></dt>
|
|
<dd><p>This turns on additional compile-time checks for instantiated
|
|
library templates, in the form of specialized templates,
|
|
<a href="19_diagnostics/howto.html#3">described here</a>. They
|
|
can help users discover when they break the rules of the STL, before
|
|
their programs run.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--enable-symvers[=style] </code></dt>
|
|
|
|
<dd><p>In 3.1 and later, tries to turn on symbol versioning in the
|
|
shared library (if a shared library has been
|
|
requested). Values for 'style' that are currently supported
|
|
are 'gnu', 'gnu-versioned-namespace', 'darwin', and
|
|
'darwin-export'. Both gnu- options require that a recent
|
|
version of the GNU linker be in use. Both darwin options are
|
|
equivalent. With no style given, the configure script will try
|
|
to guess if the 'gnu' style can be used, and if so, will turn
|
|
it on.
|
|
</p>
|
|
|
|
</dd>
|
|
|
|
<dt><code>--enable-libstdcxx-pch </code></dt>
|
|
<dd><p>In 3.4 and later, tries to turn on the generation of
|
|
stdc++.h.gch, a pre-compiled file including all the standard
|
|
C++ includes. If enabled (as by default), and the compiler
|
|
seems capable of passing the simple sanity checks thrown at
|
|
it, try to build stdc++.h.gch as part of the make process.
|
|
In addition, this generated file is used later on (by appending <code>
|
|
--include bits/stdc++.h </code> to CXXFLAGS) when running the
|
|
testsuite.
|
|
</p>
|
|
</dd>
|
|
|
|
<dt><code>--disable-hosted-libstdcxx </code></dt>
|
|
<dd><p>By default, a complete <em>hosted</em> C++ library is built. The
|
|
C++ Standard also describes a <em>freestanding</em> environment,
|
|
in which only a minimal set of headers are provided. This option
|
|
builds such an environment.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
<p>Return <a href="#top">to the top of the page</a> or
|
|
<a href="http://gcc.gnu.org/libstdc++/">to the libstdc++ homepage</a>.
|
|
</p>
|
|
|
|
|
|
<!-- ####################################################### -->
|
|
|
|
<hr />
|
|
<p class="fineprint"><em>
|
|
See <a href="17_intro/license.html">license.html</a> for copying conditions.
|
|
Comments and suggestions are welcome, and may be sent to
|
|
<a href="mailto:libstdc++@gcc.gnu.org">the libstdc++ mailing list</a>.
|
|
</em></p>
|
|
|
|
|
|
</body>
|
|
</html>
|