edje-native: Use the staged cross-compile binaries to avoid host version mismatches
authorJustin Patrin <papercrane@gmail.com>
Fri, 9 Sep 2005 23:34:32 +0000 (23:34 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 9 Sep 2005 23:34:32 +0000 (23:34 +0000)
packages/efl/edje-native_0.5.0.013.bb

index d09bc2a..3c94c65 100644 (file)
@@ -1,4 +1,7 @@
 include edje_${PV}.bb
+
+REAL_TARGET_SYS := ${TARGET_SYS}
+
 inherit native
 DEPENDS = "evas-native ecore-native eet-native embryo-native imlib2-native"
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/edje"
@@ -12,6 +15,8 @@ EXTRA_OECONF = "--with-fb-only \
 
 do_configure_prepend() {
         sed -i 's:EMBRYO_PREFIX"/bin:"${STAGING_BINDIR}:' ${S}/src/bin/edje_cc_out.c
+       sed -i 's:/usr/bin/cpp:${STAGING_DIR}/cross/bin/${REAL_TARGET_SYS}-cpp:' ${S}/src/bin/edje_cc_parse.c
+       sed -i 's:/usr/bin/gcc:${STAGING_DIR}/cross/bin/${REAL_TARGET_SYS}-gcc:' ${S}/src/bin/edje_cc_parse.c
 }
 
 do_stage_append() {