flex: only needs gettext if locale is selected

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>
This commit is contained in:
Arnout Vandecappelle (Essensium/Mind) 2012-11-01 04:35:44 +00:00 committed by Peter Korsgaard
parent 2ffad2a1f2
commit 8989ecda1b
2 changed files with 2 additions and 1 deletions

View 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.

View 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