From d835488c526aa61163ade503c6586eaa59509a07 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Wed, 5 Jan 2011 10:26:36 +0800 Subject: flex-native: create a wrapper script for sstate installation flex-native encodes M4 staging path in its binary, which breaks sstate installation in a new build environment. Use create_wrapper to create a wrapper script which explicitly set M4 environmental variable to the new path Signed-off-by: Kevin Tian --- meta/recipes-devtools/flex/flex.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/flex/flex.inc') diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc index 93fa7e81a..54c400c04 100644 --- a/meta/recipes-devtools/flex/flex.inc +++ b/meta/recipes-devtools/flex/flex.inc @@ -11,3 +11,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 " inherit autotools +do_install_append_virtclass-native() { + create_wrapper ${D}/${bindir}/flex M4=${STAGING_BINDIR_NATIVE}/m4 +} -- cgit v1.2.3