]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
toolchain: introduce BR2_TOOLCHAIN_HAS_FULL_GETTEXT
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 14:47:46 +0000 (16:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 17:09:50 +0000 (19:09 +0200)
This new boolean is true if the toolchain provides a built-in
full-featured implementation of gettext (glibc), and false if only a
stub implementation is provided (uclibc, musl).

This will be used in follow-up commits to decide whether libintl needs
to be built by gettext or not.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/Config.in
toolchain/toolchain-common.in

index 6aaf68bf6547f19979bfba5646e78a9f877e3131..15ee335481c8d0fc3feb420403321942991e6966 100644 (file)
@@ -11,6 +11,7 @@ config BR2_TOOLCHAIN_USES_GLIBC
        bool
        select BR2_USE_WCHAR
        select BR2_ENABLE_LOCALE
+       select BR2_TOOLCHAIN_HAS_FULL_GETTEXT
        select BR2_TOOLCHAIN_HAS_THREADS
        select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
        select BR2_TOOLCHAIN_HAS_THREADS_NPTL
index 74e0e069c75e593ea8f0ca3908f839702665f2ec..59115f39e99b8f8db9f09a8b75d412d4427a7e3d 100644 (file)
@@ -93,6 +93,12 @@ config BR2_NEEDS_GETTEXT_IF_LOCALE
        bool
        default y if (BR2_NEEDS_GETTEXT && BR2_ENABLE_LOCALE)
 
+# This boolean is true if the toolchain provides a built-in full
+# featured gettext implementation (glibc), and false if only a stub
+# gettext implementation is provided (uclibc, musl)
+config BR2_TOOLCHAIN_HAS_FULL_GETTEXT
+       bool
+
 config BR2_USE_MMU
        bool "Enable MMU support" if BR2_ARCH_HAS_MMU_OPTIONAL
        default y if BR2_ARCH_HAS_MMU_OPTIONAL || BR2_ARCH_HAS_MMU_MANDATORY