Details on this package are located in Section 10.42.2, “Contents of Gettext.”
The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language.
Only the programs in the gettext-tools
directory need to be installed for
the temp-system:
cd gettext-tools
When cross-compiling the Gettext configure script assumes we don't have a working wcwidth when we do. The following will fix possible compilation errors because of this assumption:
echo "gl_cv_func_wcwidth_works=yes" > config.cache
Prepare Gettext for compilation:
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ ./configure --prefix=/tools --disable-shared \ --build=${CLFS_HOST} --host=${CLFS_TARGET} \ --cache-file=config.cache
The meaning of the configure options:
--disable-shared
This tells Gettext not to create a shared library.
Compile the package:
make -C gnulib-lib make -C src msgfmt
Install the msgfmt binary:
cp -v src/msgfmt /tools/bin
Details on this package are located in Section 10.42.2, “Contents of Gettext.”