flex: needs M4 at runtime

For proper runtime execution, flex requires m4 to be
installed. Passing a M4 variable at configure time is needed,
otherwise flex on the target will try to use a 'm4' binary with a
build machine path.

Fixes bug #4988.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Thomas Petazzoni 2013-05-26 12:08:17 +00:00 committed by Peter Korsgaard
parent f8a9c13252
commit fe6a9e5e9d
2 changed files with 3 additions and 0 deletions

View File

@ -12,5 +12,7 @@ config BR2_PACKAGE_FLEX_BINARY
# needs fork() # needs fork()
depends on BR2_USE_MMU depends on BR2_USE_MMU
depends on BR2_PACKAGE_FLEX depends on BR2_PACKAGE_FLEX
# runtime dependency
select BR2_PACKAGE_M4
help help
Install the flex binary tool in the target filesystem. Install the flex binary tool in the target filesystem.

View File

@ -11,6 +11,7 @@ FLEX_LICENSE = FLEX
FLEX_LICENSE_FILES = COPYING FLEX_LICENSE_FILES = COPYING
FLEX_DEPENDENCIES = \ FLEX_DEPENDENCIES = \
$(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4 $(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4
FLEX_CONF_ENV = M4=/usr/bin/m4
# we don't have a host-gettext/libintl # we don't have a host-gettext/libintl
HOST_FLEX_DEPENDENCIES = host-m4 HOST_FLEX_DEPENDENCIES = host-m4