flex: only needs gettext if locale is selected
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 1 Nov 2012 04:35:44 +0000 (04:35 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 6 May 2013 22:23:35 +0000 (00:23 +0200)
Also add missing select in Config.in.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/flex/Config.in
package/flex/flex.mk

index 90a75f4756fa8d0deb76128971a0b4267993d04b..f74a0f0e8b041f4eb6a040300368224e4d8cc684 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_FLEX
        bool "flex"
+       select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        help
          A fast lexical analyser generator.  A tool for generating
          programs that perform pattern-matching on text.
index 59551f22b36b7e1ace37c5e28396d1402cfa025a..f7e319f1c428e50287507d87fb4bb612d0bd37bd 100644 (file)
@@ -10,7 +10,7 @@ FLEX_INSTALL_STAGING = YES
 FLEX_LICENSE = FLEX
 FLEX_LICENSE_FILES = COPYING
 FLEX_DEPENDENCIES = \
-       $(if $(BR2_PACKAGE_GETTEXT),gettext) host-m4
+       $(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4
 # we don't have a host-gettext/libintl
 HOST_FLEX_DEPENDENCIES = host-m4