summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-native_cvs.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/qemu/qemu-native_cvs.bb')
-rw-r--r--packages/qemu/qemu-native_cvs.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/qemu/qemu-native_cvs.bb b/packages/qemu/qemu-native_cvs.bb
index 07b9dae420..976d2d664f 100644
--- a/packages/qemu/qemu-native_cvs.bb
+++ b/packages/qemu/qemu-native_cvs.bb
@@ -2,3 +2,13 @@ include qemu_cvs.bb
inherit native
prefix = "${STAGING_DIR}/${BUILD_SYS}"
+python __anonymous() {
+ from bb import which, data
+
+ path = data.getVar('PATH', d)
+ if len(which(path, 'gcc-3.4')) != 0:
+ data.setVar('EXTRA_OECONF', " --cc=gcc-3.4", d)
+ elif len(which(path, 'gcc-3.3')) != 0:
+ data.setVar('EXTRA_OECONF', " --cc=gcc-3.3", d)
+
+}