mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
Minor grammatical and spelling tweaks to the manual content. Signed-off-by: Simon Dawson <spdawson@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
// -*- mode:doc; -*-
|
|
|
|
Gettext integration and interaction with packages
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Many packages that support internationalization use the gettext
|
|
library. Dependencies for this library are fairly complicated and
|
|
therefore, deserve some explanation.
|
|
|
|
The 'uClibc' C library doesn't implement gettext functionality;
|
|
therefore with this C library, a separate gettext must be compiled. On
|
|
the other hand, the 'glibc' C library does integrate its own gettext,
|
|
and in this case the separate gettext library should not be compiled,
|
|
because it creates various kinds of build failures.
|
|
|
|
Additionally, some packages (such as +libglib2+) do require gettext
|
|
unconditionally, while other packages (those who support
|
|
+--disable-nls+ in general) only require gettext when locale support
|
|
is enabled.
|
|
|
|
Therefore, Buildroot defines two configuration options:
|
|
|
|
* +BR2_NEEDS_GETTEXT+, which is true as soon as the toolchain doesn't
|
|
provide its own gettext implementation
|
|
|
|
* +BR2_NEEDS_GETTEXT_IF_LOCALE+, which is true if the toolchain
|
|
doesn't provide its own gettext implementation and if locale support
|
|
is enabled
|
|
|
|
Therefore, packages that unconditionally need gettext should:
|
|
|
|
* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT+
|
|
|
|
* Use +$(if $(BR2_NEEDS_GETTEXT),gettext)+ in the package
|
|
+DEPENDENCIES+ variable
|
|
|
|
Packages that need gettext only when locale support is enabled should:
|
|
|
|
* Use +select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE+
|
|
|
|
* Use +$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)+ in the package
|
|
+DEPENDENCIES+ variable
|