From: Jonathan Wakely Table of Contents Transforming libstdc++ sources into installed include files
and properly built binaries useful for linking to other software is
- a multi-step process. Steps include getting the sources,
- configuring and building the sources, testing, and installation.
- The general outline of commands is something like:
+ done as part of building GCC. Building libstdc++ separately from the
+ rest of GCC is not supported.
+ The general outline of commands to build GCC is something like:
If GCC 3.1.0 or later on is being used on GNU/Linux, an attempt
will be made to use "C" library functionality necessary for
- C++ named locale support. For GCC 4.6.0 and later, this
- means that glibc 2.3 or later is required.
+ C++ named locale support, e.g. the
If the 'gnu' locale model is being used, the following
locales are used and tested in the libstdc++ testsuites.
@@ -116,7 +118,17 @@ zh_TW BIG5
libstdc++ after "C" locales are installed is not necessary.
To install support for locales, do only one of the following:
- install all locales install just the necessary locales with Debian GNU/Linux: Add the above list, as shown, to the file
+ install all locales, e.g., run
+ install just the necessary locales with Debian GNU/Linux: Add the above list, as shown, to the file
run on most Unix-like operating systems: (repeat for each entry in the above list)
Instructions for other operating systems solicited.
-
get gcc sources
extract into gccsrcdir
@@ -77,8 +77,10 @@ ln -s libiconv-1.16 libiconv
newlocale
+ and uselocale
functions.
+ For GCC 4.6.0 and later,
+ this means that glibc 2.3 or later is required.
dnf install glibc-all-langpacks
+ for Fedora and related distributions.
+ /etc/locale.gen
/usr/sbin/locale-gen
localedef -i de_DE -f ISO-8859-1 de_DE
std::messages
facet require a
+ message catalog created by the msgfmt utility.
+ That is usually installed as part of the GNU gettext library.
+ If msgfmt is not available, some tests under
+ the 22_locale/messages
+ directory will fail.
+