From: Thomas Petazzoni
Many packages that support internationalization use the gettext + library. Dependency on this library are fairly complicated and + therefore deserves a few explanations.
+ +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 + kind of build failures.
+ +Additionnaly, some packages (such as libglib2) do require
+ gettext unconditionnally, 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 implementationBR2_NEEDS_GETTEXT_IF_LOCALE
, which is true if
+ the toolchain doesn't provide its own gettext implementation and
+ if locale support is enabledTherefore, packages that unconditionnally need gettext should:
+ +select BR2_PACKAGE_GNUTTEXT if
+ BR2_NEEDS_GETTEXT
and possibly select
+ BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT
if libintl is
+ also needed$(if $(BR2_NEEDS_GETTEXT),gettext)
in the
+ package DEPENDENCIES
variablePackages that need gettext only when locale support is enabled + should:
+ +select BR2_PACKAGE_GNUTTEXT if
+ BR2_NEEDS_GETTEXT_IF_LOCALE
and possibly select
+ BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
if
+ libintl is also needed$(if
+ $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
in the
+ package DEPENDENCIES
variable