head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC4:1.1.1.12 netbsd-11-0-RC3:1.1.1.12 netbsd-11-0-RC2:1.1.1.12 netbsd-11-0-RC1:1.1.1.12 gcc-14-3-0:1.1.1.13 perseant-exfatfs-base-20250801:1.1.1.12 netbsd-11:1.1.1.12.0.4 netbsd-11-base:1.1.1.12 gcc-12-5-0:1.1.1.12 netbsd-10-1-RELEASE:1.1.1.11 perseant-exfatfs-base-20240630:1.1.1.12 gcc-12-4-0:1.1.1.12 perseant-exfatfs:1.1.1.12.0.2 perseant-exfatfs-base:1.1.1.12 netbsd-8-3-RELEASE:1.1.1.3 netbsd-9-4-RELEASE:1.1.1.6 netbsd-10-0-RELEASE:1.1.1.11 netbsd-10-0-RC6:1.1.1.11 netbsd-10-0-RC5:1.1.1.11 netbsd-10-0-RC4:1.1.1.11 netbsd-10-0-RC3:1.1.1.11 netbsd-10-0-RC2:1.1.1.11 netbsd-10-0-RC1:1.1.1.11 gcc-12-3-0:1.1.1.12 gcc-10-5-0:1.1.1.11 netbsd-10:1.1.1.11.0.6 netbsd-10-base:1.1.1.11 netbsd-9-3-RELEASE:1.1.1.6 gcc-10-4-0:1.1.1.11 cjep_sun2x-base1:1.1.1.11 cjep_sun2x:1.1.1.11.0.4 cjep_sun2x-base:1.1.1.11 cjep_staticlib_x-base1:1.1.1.11 netbsd-9-2-RELEASE:1.1.1.6 cjep_staticlib_x:1.1.1.11.0.2 cjep_staticlib_x-base:1.1.1.11 gcc-10-3-0:1.1.1.11 netbsd-9-1-RELEASE:1.1.1.6 gcc-9-3-0:1.1.1.10 gcc-7-5-0:1.1.1.8 phil-wifi-20200421:1.1.1.7 phil-wifi-20200411:1.1.1.7 is-mlppp:1.1.1.7.0.2 is-mlppp-base:1.1.1.7 phil-wifi-20200406:1.1.1.7 netbsd-8-2-RELEASE:1.1.1.3 gcc-8-4-0:1.1.1.9 netbsd-9-0-RELEASE:1.1.1.6 netbsd-9-0-RC2:1.1.1.6 netbsd-9-0-RC1:1.1.1.6 phil-wifi-20191119:1.1.1.7 gcc-8-3-0:1.1.1.7 netbsd-9:1.1.1.6.0.2 netbsd-9-base:1.1.1.6 phil-wifi-20190609:1.1.1.6 netbsd-8-1-RELEASE:1.1.1.3 netbsd-8-1-RC1:1.1.1.3 pgoyette-compat-merge-20190127:1.1.1.4.2.2 pgoyette-compat-20190127:1.1.1.6 gcc-7-4-0:1.1.1.6 pgoyette-compat-20190118:1.1.1.5 pgoyette-compat-1226:1.1.1.5 pgoyette-compat-1126:1.1.1.5 gcc-6-5-0:1.1.1.5 pgoyette-compat-1020:1.1.1.4 pgoyette-compat-0930:1.1.1.4 pgoyette-compat-0906:1.1.1.4 netbsd-7-2-RELEASE:1.1.1.2 pgoyette-compat-0728:1.1.1.4 netbsd-8-0-RELEASE:1.1.1.3 phil-wifi:1.1.1.4.0.4 phil-wifi-base:1.1.1.4 pgoyette-compat-0625:1.1.1.4 netbsd-8-0-RC2:1.1.1.3 pgoyette-compat-0521:1.1.1.4 pgoyette-compat-0502:1.1.1.4 pgoyette-compat-0422:1.1.1.4 netbsd-8-0-RC1:1.1.1.3 pgoyette-compat-0415:1.1.1.4 pgoyette-compat-0407:1.1.1.4 pgoyette-compat-0330:1.1.1.4 pgoyette-compat-0322:1.1.1.4 pgoyette-compat-0315:1.1.1.4 netbsd-7-1-2-RELEASE:1.1.1.2 pgoyette-compat:1.1.1.4.0.2 pgoyette-compat-base:1.1.1.4 gcc-6-4-0:1.1.1.4 netbsd-7-1-1-RELEASE:1.1.1.2 gcc-5-5-0:1.1.1.3 matt-nb8-mediatek:1.1.1.3.0.12 matt-nb8-mediatek-base:1.1.1.3 perseant-stdc-iso10646:1.1.1.3.0.10 perseant-stdc-iso10646-base:1.1.1.3 netbsd-8:1.1.1.3.0.8 netbsd-8-base:1.1.1.3 prg-localcount2-base3:1.1.1.3 prg-localcount2-base2:1.1.1.3 prg-localcount2-base1:1.1.1.3 prg-localcount2:1.1.1.3.0.6 prg-localcount2-base:1.1.1.3 pgoyette-localcount-20170426:1.1.1.3 bouyer-socketcan-base1:1.1.1.3 pgoyette-localcount-20170320:1.1.1.3 netbsd-7-1:1.1.1.2.0.10 netbsd-7-1-RELEASE:1.1.1.2 netbsd-7-1-RC2:1.1.1.2 netbsd-7-nhusb-base-20170116:1.1.1.2 bouyer-socketcan:1.1.1.3.0.4 bouyer-socketcan-base:1.1.1.3 pgoyette-localcount-20170107:1.1.1.3 netbsd-7-1-RC1:1.1.1.2 pgoyette-localcount-20161104:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.2 localcount-20160914:1.1.1.3 netbsd-7-nhusb:1.1.1.2.0.8 netbsd-7-nhusb-base:1.1.1.2 pgoyette-localcount-20160806:1.1.1.3 pgoyette-localcount-20160726:1.1.1.3 pgoyette-localcount:1.1.1.3.0.2 pgoyette-localcount-base:1.1.1.3 gcc-5-4-0:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.2 gcc-5-3-0:1.1.1.3 netbsd-7-0:1.1.1.2.0.6 netbsd-7-0-RELEASE:1.1.1.2 gcc-4-8-5-pre-gcc-old-import:1.1.1.2 netbsd-7-0-RC3:1.1.1.2 netbsd-7-0-RC2:1.1.1.2 post-gcc-4-8-5-merge:1.1.1.2 gcc-4-8-5:1.1.1.2 netbsd-7-0-RC1:1.1.1.2 gcc-4-8-4:1.1.1.2 gcc-4-8-20141009:1.1.1.2 netbsd-6-0-6-RELEASE:1.1.1.1 netbsd-6-1-5-RELEASE:1.1.1.1 netbsd-7:1.1.1.2.0.4 netbsd-7-base:1.1.1.2 gcc-4-8-3:1.1.1.2 yamt-pagecache-base9:1.1.1.2 yamt-pagecache-tag8:1.1.1.1 netbsd-6-1-4-RELEASE:1.1.1.1 netbsd-6-0-5-RELEASE:1.1.1.1 tls-earlyentropy:1.1.1.2.0.2 tls-earlyentropy-base:1.1.1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2 riastradh-drm2-base3:1.1.1.2 gcc-4-8-3-pre-r208254:1.1.1.2 gcc-4-8-3-pre-r206687:1.1.1.2 imported-to-gcc-old-20140227-0107:1.1.1.1 netbsd-6-1-3-RELEASE:1.1.1.1 netbsd-6-0-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.1 netbsd-6-0-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.1 riastradh-drm2-base2:1.1.1.1 riastradh-drm2-base1:1.1.1.1 riastradh-drm2:1.1.1.1.0.12 riastradh-drm2-base:1.1.1.1 netbsd-6-1:1.1.1.1.0.16 netbsd-6-0-2-RELEASE:1.1.1.1 netbsd-6-1-RELEASE:1.1.1.1 netbsd-6-1-RC4:1.1.1.1 netbsd-6-1-RC3:1.1.1.1 agc-symver:1.1.1.1.0.14 agc-symver-base:1.1.1.1 netbsd-6-1-RC2:1.1.1.1 netbsd-6-1-RC1:1.1.1.1 yamt-pagecache-base8:1.1.1.1 netbsd-6-0-1-RELEASE:1.1.1.1 yamt-pagecache-base7:1.1.1.1 matt-nb6-plus-nbase:1.1.1.1 yamt-pagecache-base6:1.1.1.1 netbsd-6-0:1.1.1.1.0.10 netbsd-6-0-RELEASE:1.1.1.1 gcc-4-5-4:1.1.1.1 netbsd-6-0-RC2:1.1.1.1 tls-maxphys:1.1.1.1.0.8 tls-maxphys-base:1.1.1.2 matt-nb6-plus:1.1.1.1.0.6 matt-nb6-plus-base:1.1.1.1 netbsd-6-0-RC1:1.1.1.1 yamt-pagecache-base5:1.1.1.1 yamt-pagecache-base4:1.1.1.1 netbsd-6:1.1.1.1.0.4 netbsd-6-base:1.1.1.1 yamt-pagecache-base3:1.1.1.1 yamt-pagecache-base2:1.1.1.1 yamt-pagecache:1.1.1.1.0.2 yamt-pagecache-base:1.1.1.1 gcc-4-5-3:1.1.1.1 FSF:1.1.1; locks; strict; comment @# @; 1.1 date 2011.06.21.01.24.07; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.06.21.01.24.07; author mrg; state Exp; branches 1.1.1.1.2.1 1.1.1.1.8.1; next 1.1.1.2; 1.1.1.2 date 2014.03.01.08.41.30; author mrg; state Exp; branches; next 1.1.1.3; commitid TtaB91QNTknAoYqx; 1.1.1.3 date 2016.01.24.06.05.43; author mrg; state Exp; branches; next 1.1.1.4; commitid uWWfbLp08zOK79Sy; 1.1.1.4 date 2018.02.02.01.59.03; author mrg; state Exp; branches 1.1.1.4.2.1 1.1.1.4.4.1; next 1.1.1.5; commitid XNKaycqpfhzd5epA; 1.1.1.5 date 2018.11.04.00.12.37; author mrg; state Exp; branches; next 1.1.1.6; commitid bulspy67pMB6EyYA; 1.1.1.6 date 2019.01.19.10.14.11; author mrg; state Exp; branches; next 1.1.1.7; commitid VQ8OwWIg5RS9kn8B; 1.1.1.7 date 2019.10.01.09.36.13; author mrg; state Exp; branches; next 1.1.1.8; commitid smvgr2IPAQDr89FB; 1.1.1.8 date 2020.08.11.05.10.39; author mrg; state Exp; branches; next 1.1.1.9; commitid 5dBRDT7i6e65xBjC; 1.1.1.9 date 2020.08.11.05.30.16; author mrg; state Exp; branches; next 1.1.1.10; commitid 7AI4OfpLi4eqEBjC; 1.1.1.10 date 2020.09.05.07.52.18; author mrg; state Exp; branches; next 1.1.1.11; commitid ZRYA7IOuwfMjAPmC; 1.1.1.11 date 2021.04.10.22.10.05; author mrg; state Exp; branches; next 1.1.1.12; commitid eC4g0MRpqTvEkNOC; 1.1.1.12 date 2023.07.30.05.21.21; author mrg; state Exp; branches; next 1.1.1.13; commitid tk6nV4mbc9nVEMyE; 1.1.1.13 date 2025.09.13.23.45.49; author mrg; state Exp; branches; next ; commitid KwhwN4krNWa6XBaG; 1.1.1.1.2.1 date 2014.05.22.16.37.44; author yamt; state Exp; branches; next ; commitid DX8bafDLmqEbpyBx; 1.1.1.1.8.1 date 2014.08.19.23.54.46; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.1.1.4.2.1 date 2018.11.26.01.50.57; author pgoyette; state Exp; branches; next 1.1.1.4.2.2; commitid Zj4q5SspGdKXto1B; 1.1.1.4.2.2 date 2019.01.26.21.59.32; author pgoyette; state Exp; branches; next ; commitid JKpcmvSjdT25dl9B; 1.1.1.4.4.1 date 2019.06.10.21.54.48; author christos; state Exp; branches; next 1.1.1.4.4.2; commitid jtc8rnCzWiEEHGqB; 1.1.1.4.4.2 date 2020.04.13.07.58.34; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; desc @@ 1.1 log @Initial revision @ text @
Table of Contents
As noted previously,
certain other tools are necessary for hacking on files that
control configure (configure.ac,
acinclude.m4) and make
(Makefile.am). These additional tools
(automake, and autoconf) are further
described in detail in their respective manuals. All the libraries
in GCC try to stay in sync with each other in terms of versions of
the auto-tools used, so please try to play nicely with the
neighbors.
Regenerate all generated files by using the command sequence
"autoreconf" at the top level of the libstdc++ source
directory. The following will also work, but is much more complex:
"aclocal-1.11 && autoconf-2.64 &&
autoheader-2.64 && automake-1.11" The version
numbers may be absent entirely or otherwise vary depending on
the
current requirements and your vendor's choice of
installation names.
Until that glorious day when we can use AC_TRY_LINK with a cross-compiler, we have to hardcode the results of what the tests would have shown if they could be run. So we have an inflexible mess like crossconfig.m4.
Wouldn't it be nice if we could store that information in files like configure.host, which can be modified without needing to regenerate anything, and can even be tweaked without really knowing how the configury all works? Perhaps break the pieces of crossconfig.m4 out and place them in their appropriate config/{cpu,os} directory.
Alas, writing macros like
"AC_DEFINE(HAVE_A_NICE_DAY)" can only be done inside
files which are passed through autoconf. Files which are pure
shell script can be source'd at configure time. Files which
contain autoconf macros must be processed with autoconf. We could
still try breaking the pieces out into "config/*/cross.m4" bits,
for instance, but then we would need arguments to aclocal/autoconf
to properly find them all when generating configure. I would
discourage that.
Most comments should use {octothorpes, shibboleths, hash marks,
pound signs, whatever} rather than "dnl". Nearly all comments in
configure.ac should. Comments inside macros written in ancilliary
.m4 files should. About the only comments which should
not use #, but use dnl instead, are comments
outside our own macros in the ancilliary
files. The difference is that # comments show up in
configure (which is most helpful for debugging),
while dnl'd lines just vanish. Since the macros in ancilliary
files generate code which appears in odd places, their "outside"
comments tend to not be useful while reading
configure.
Do not use any $target* variables, such as
$target_alias. The single exception is in
configure.ac, for automake+dejagnu's sake.
The nice thing about acinclude.m4/aclocal.m4 is that macros aren't actually performed/called/expanded/whatever here, just loaded. So we can arrange the contents however we like. As of this writing, acinclude.m4 is arranged as follows:
GLIBCXX_CHECK_HOST
GLIBCXX_TOPREL_CONFIGURE
GLIBCXX_CONFIGURE
All the major variable "discovery" is done here. CXX, multilibs, etc.
fragments included from elsewhere
Right now, "fragments" == "the math/linkage bits".
GLIBCXX_CHECK_COMPILER_FEATURES
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_WCHAR_T_SUPPORT
Next come extra compiler/linker feature tests. Wide character support was placed here because I couldn't think of another place for it. It will probably get broken apart like the math tests, because we're still disabling wchars on systems which could actually support them.
GLIBCXX_CHECK_SETRLIMIT_ancilliary
GLIBCXX_CHECK_SETRLIMIT
GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
GLIBCXX_CHECK_POLL
GLIBCXX_CHECK_WRITEV
GLIBCXX_CONFIGURE_TESTSUITE
Feature tests which only get used in one place. Here, things used only in the testsuite, plus a couple bits used in the guts of I/O.
GLIBCXX_EXPORT_INCLUDES
GLIBCXX_EXPORT_FLAGS
GLIBCXX_EXPORT_INSTALL_INFO
Installation variables, multilibs, working with the rest of the compiler. Many of the critical variables used in the makefiles are set here.
GLIBGCC_ENABLE
GLIBCXX_ENABLE_C99
GLIBCXX_ENABLE_CHEADERS
GLIBCXX_ENABLE_CLOCALE
GLIBCXX_ENABLE_CONCEPT_CHECKS
GLIBCXX_ENABLE_CSTDIO
GLIBCXX_ENABLE_CXX_FLAGS
GLIBCXX_ENABLE_C_MBCHAR
GLIBCXX_ENABLE_DEBUG
GLIBCXX_ENABLE_DEBUG_FLAGS
GLIBCXX_ENABLE_LONG_LONG
GLIBCXX_ENABLE_PCH
GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
GLIBCXX_ENABLE_SYMVERS
GLIBCXX_ENABLE_THREADS
All the features which can be controlled with enable/disable configure options. Note how they're alphabetized now? Keep them like that. :-)
AC_LC_MESSAGES
libtool bits
Things which we don't seem to use directly, but just has to be present otherwise stuff magically goes wonky.
All the GLIBCXX_ENABLE_FOO macros use a common helper, GLIBCXX_ENABLE. (You don't have to use it, but it's easy.) The helper does two things for us:
Builds the call to the AC_ARG_ENABLE macro, with --help text properly quoted and aligned. (Death to changequote!)
Checks the result against a list of allowed possibilities, and
signals a fatal error if there's no match. This means that the
rest of the GLIBCXX_ENABLE_FOO macro doesn't need to test for
strange arguments, nor do we need to protect against
empty/whitespace strings with the "x$foo" = "xbar"
idiom.
Doing these things correctly takes some extra autoconf/autom4te code, which made our macros nearly illegible. So all the ugliness is factored out into this one helper macro.
Many of the macros take an argument, passed from when they are expanded in configure.ac. The argument controls the default value of the enable/disable switch. Previously, the arguments themselves had defaults. Now they don't, because that's extra complexity with zero gain for us.
There are three "overloaded signatures". When reading the descriptions below, keep in mind that the brackets are autoconf's quotation characters, and that they will be stripped. Examples of just about everything occur in acinclude.m4, if you want to look.
GLIBCXX_ENABLE (FEATURE, DEFAULT, HELP-ARG, HELP-STRING)
GLIBCXX_ENABLE (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, permit a|b|c)
GLIBCXX_ENABLE (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, SHELL-CODE-HANDLER)
FEATURE is the string that follows --enable. The results of the
test (such as it is) will be in the variable $enable_FEATURE,
where FEATURE has been squashed. Example:
[extra-foo], controlled by the --enable-extra-foo
option and stored in $enable_extra_foo.
DEFAULT is the value to store in $enable_FEATURE if the user does
not pass --enable/--disable. It should be one of the permitted
values passed later. Examples: [yes], or
[bar], or [$1] (which passes the
argument given to the GLIBCXX_ENABLE_FOO macro as the
default).
For cases where we need to probe for particular models of things, it is useful to have an undocumented "auto" value here (see GLIBCXX_ENABLE_CLOCALE for an example).
HELP-ARG is any text to append to the option string itself in the
--help output. Examples: [] (i.e., an empty string,
which appends nothing), [=BAR], which produces
--enable-extra-foo=BAR, and
[@@<:@@=BAR@@:>@@], which produces
--enable-extra-foo[=BAR]. See the difference? See
what it implies to the user?
If you're wondering what that line noise in the last example was, that's how you embed autoconf special characters in output text. They're called quadrigraphs and you should use them whenever necessary.
HELP-STRING is what you think it is. Do not include the "default" text like we used to do; it will be done for you by GLIBCXX_ENABLE. By convention, these are not full English sentences. Example: [turn on extra foo]
With no other arguments, only the standard autoconf patterns are
allowed: "--{enable,disable}-foo[={yes,no}]" The
$enable_FEATURE variable is guaranteed to equal either "yes" or "no"
after the macro. If the user tries to pass something else, an
explanatory error message will be given, and configure will halt.
The second signature takes a fifth argument, "[permit
a | b | c | ...]"
This allows a or b or
... after the equals sign in the option, and $enable_FEATURE is
guaranteed to equal one of them after the macro. Note that if you
want to allow plain --enable/--disable with no "=whatever", you must
include "yes" and "no" in the list of permitted values. Also note
that whatever you passed as DEFAULT must be in the list. If the
user tries to pass something not on the list, a semi-explanatory
error message will be given, and configure will halt. Example:
[permit generic|gnu|ieee_1003.1-2001|yes|no|auto]
The third signature takes a fifth argument. It is arbitrary shell code to execute if the user actually passes the enable/disable option. (If the user does not, the default is used. Duh.) No argument checking at all is done in this signature. See GLIBCXX_ENABLE_CXX_FLAGS for an example of handling, and an error message.
Table of Contents
std:: not supportedisspace from <cctype> is a macro
vector::at, deque::at, string::atstd::char_traits<char>::eofstring::clearostream::form and istream::scan
extensions
basic_stringbuf, basic_stringstreamios::nocreate/ios::noreplace.
stream::attach(int fd)
Container::iterator_type is not necessarily Container::value_type*
As noted previously, d20 13 a32 26
The configure process begins the act of building libstdc++, and is started via:
configure
The configure file is a script generated (via
autoconf) from the file
configure.ac.
After the configure process is complete,
make all
in the build directory starts the build process. The all target comes from the Makefile file, which is generated via configure from the Makefile.in file, which is in turn generated (via
automake) from the file
Makefile.am.
All the GLIBCXX_ENABLE_FOO macros use a common
helper, GLIBCXX_ENABLE. (You don't have to use
it, but it's easy.) The helper does two things for us:
d147 1
a147 1
Builds the call to the AC_ARG_ENABLE macro, with --help text
d152 1
a152 1
rest of the GLIBCXX_ENABLE_FOO macro doesn't need to test for
d171 1
a171 1
d182 2
a183 2
argument given to the GLIBCXX_ENABLE_FOO macro
as the default).
d187 1
a187 1
GLIBCXX_ENABLE_CLOCALE for an example).
d199 1
a199 1
They're called quadrigraphs
d230 1
a230 44
The build process has to make all of object files needed for static or shared libraries, but first it has to generate some include files. The general order is as follows:
make include files, make pre-compiled headers
make libsupc++
Generates a libtool convenience library,
libsupc++convenience with language-support
routines. Also generates a freestanding static library,
libsupc++.a.
make src
Generates two convenience libraries, one for C++98 and one for C++11, various compability files for shared and static libraries, and then collects all the generated bits and creates the final libstdc++ libraries.
make src/c++98
Generates a libtool convenience library,
libc++98convenience with language-support
routines. Uses the -std=gnu++98 dialect.
make src/c++11
Generates a libtool convenience library,
libc++11convenience with language-support
routines. Uses the -std=gnu++11 dialect.
make src
Generates needed compatibility objects for shared and static
libraries. Shared-only code is seggregated at compile-time via
the macro _GLIBCXX_SHARED.
Then, collects all the generated convenience libraries, adds in
any required compatibility objects, and creates the final shared
and static libraries: libstdc++.so and
libstdc++.a.
Table of Contents
std:: not supportedisspace from <cctype> is a macro
vector::at, deque::at, string::atstd::char_traits<char>::eofstring::clearostream::form and istream::scan
extensions
basic_stringbuf, basic_stringstreamios::nocreate/ios::noreplace.
stream::attach(int fd)
Container::iterator_type is not necessarily Container::value_type*
As noted previously, d20 13 a32 26
The configure process begins the act of building libstdc++, and is started via:
configure
The configure file is a script generated (via
autoconf) from the file
configure.ac.
After the configure process is complete,
make all
in the build directory starts the build process. The all target comes from the Makefile file, which is generated via configure from the Makefile.in file, which is in turn generated (via
automake) from the file
Makefile.am.
All the GLIBCXX_ENABLE_FOO macros use a common
helper, GLIBCXX_ENABLE. (You don't have to use
it, but it's easy.) The helper does two things for us:
d147 1
a147 1
Builds the call to the AC_ARG_ENABLE macro, with --help text
d152 1
a152 1
rest of the GLIBCXX_ENABLE_FOO macro doesn't need to test for
d171 1
a171 1
d182 2
a183 2
argument given to the GLIBCXX_ENABLE_FOO macro
as the default).
d187 1
a187 1
GLIBCXX_ENABLE_CLOCALE for an example).
d199 1
a199 1
They're called quadrigraphs
d230 1
a230 44
The build process has to make all of object files needed for static or shared libraries, but first it has to generate some include files. The general order is as follows:
make include files, make pre-compiled headers
make libsupc++
Generates a libtool convenience library,
libsupc++convenience with language-support
routines. Also generates a freestanding static library,
libsupc++.a.
make src
Generates two convenience libraries, one for C++98 and one for C++11, various compability files for shared and static libraries, and then collects all the generated bits and creates the final libstdc++ libraries.
make src/c++98
Generates a libtool convenience library,
libc++98convenience with language-support
routines. Uses the -std=gnu++98 dialect.
make src/c++11
Generates a libtool convenience library,
libc++11convenience with language-support
routines. Uses the -std=gnu++11 dialect.
make src
Generates needed compatibility objects for shared and static
libraries. Shared-only code is seggregated at compile-time via
the macro _GLIBCXX_SHARED.
Then, collects all the generated convenience libraries, adds in
any required compatibility objects, and creates the final shared
and static libraries: libstdc++.so and
libstdc++.a.
Table of Contents
std:: not supportedisspace from <cctype> is a macro
vector::at, deque::at, string::atstd::char_traits<char>::eofstring::clearostream::form and istream::scan
extensions
basic_stringbuf, basic_stringstreamios::nocreate/ios::noreplace.
stream::attach(int fd)
Container::iterator_type is not necessarily Container::value_type*
As noted previously, d20 13 a32 26
The configure process begins the act of building libstdc++, and is started via:
configure
The configure file is a script generated (via
autoconf) from the file
configure.ac.
After the configure process is complete,
make all
in the build directory starts the build process. The all target comes from the Makefile file, which is generated via configure from the Makefile.in file, which is in turn generated (via
automake) from the file
Makefile.am.
All the GLIBCXX_ENABLE_FOO macros use a common
helper, GLIBCXX_ENABLE. (You don't have to use
it, but it's easy.) The helper does two things for us:
d147 1
a147 1
Builds the call to the AC_ARG_ENABLE macro, with --help text
d152 1
a152 1
rest of the GLIBCXX_ENABLE_FOO macro doesn't need to test for
d171 1
a171 1
d182 2
a183 2
argument given to the GLIBCXX_ENABLE_FOO macro
as the default).
d187 1
a187 1
GLIBCXX_ENABLE_CLOCALE for an example).
d199 1
a199 1
They're called quadrigraphs
d230 1
a230 44
The build process has to make all of object files needed for static or shared libraries, but first it has to generate some include files. The general order is as follows:
make include files, make pre-compiled headers
make libsupc++
Generates a libtool convenience library,
libsupc++convenience with language-support
routines. Also generates a freestanding static library,
libsupc++.a.
make src
Generates two convenience libraries, one for C++98 and one for C++11, various compability files for shared and static libraries, and then collects all the generated bits and creates the final libstdc++ libraries.
make src/c++98
Generates a libtool convenience library,
libc++98convenience with language-support
routines. Uses the -std=gnu++98 dialect.
make src/c++11
Generates a libtool convenience library,
libc++11convenience with language-support
routines. Uses the -std=gnu++11 dialect.
make src
Generates needed compatibility objects for shared and static
libraries. Shared-only code is seggregated at compile-time via
the macro _GLIBCXX_SHARED.
Then, collects all the generated convenience libraries, adds in
any required compatibility objects, and creates the final shared
and static libraries: libstdc++.so and
libstdc++.a.
d93 1 a93 1 configure.ac should. Comments inside macros written in ancillary d96 1 a96 1 outside our own macros in the ancillary d99 1 a99 1 while dnl'd lines just vanish. Since the macros in ancillary d283 1 a283 1 C++11, various compatibility files for shared and static @ 1.1.1.4 log @import GCC 6.4.0. see this url for details which are too large to include here: http://gcc.gnu.org/gcc-6/changes.html the main visible changes appear to be: - The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98. - The C and C++ compilers now support attributes on enumerators. - Diagnostics can now contain "fix-it hints" - more warnings (some added to -Wall) @ text @d165 1 @ 1.1.1.4.4.1 log @Sync with HEAD @ text @d2 1 a2 1