[oe-commits] Laurentiu Palcu : flex: fix m4 issue on target
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 20 14:02:57 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 64030f37b34f75144f53eef42d5822ede79e08bd
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=64030f37b34f75144f53eef42d5822ede79e08bd
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Wed Nov 6 15:07:58 2013 +0200
flex: fix m4 issue on target
Flex needs m4 to run (see below) and, since the create_wrapper
introduces a bash dependency on target, give the path to m4 binary in
the configure command line.
Snippet from the flex documentation:
"The macro processor m4 must be installed wherever flex is installed.
<...>
m4 is only required at the time you run flex."
[YOCTO #5329]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/flex/flex.inc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc
index 43f1dda..96d5de5 100644
--- a/meta/recipes-devtools/flex/flex.inc
+++ b/meta/recipes-devtools/flex/flex.inc
@@ -13,6 +13,9 @@ inherit autotools gettext
M4 = "${bindir}/m4"
M4_class-native = "${STAGING_BINDIR_NATIVE}/m4"
+EXTRA_OECONF += "ac_cv_path_M4=${M4}"
+EXTRA_OEMAKE += "m4=${STAGING_BINDIR_NATIVE}/m4"
+
do_install_append_class-native() {
create_wrapper ${D}/${bindir}/flex M4=${M4}
}
@@ -20,3 +23,5 @@ do_install_append_class-native() {
do_install_append_class-nativesdk() {
create_wrapper ${D}/${bindir}/flex M4=${M4}
}
+
+RDEPENDS_${PN} += "m4"
More information about the Openembedded-commits
mailing list