From bc1593ed9d5de49ad87b0c5a8ca6edb7c912853c Mon Sep 17 00:00:00 2001 From: Rene Wagner Date: Sun, 14 May 2006 20:26:35 +0200 Subject: [PATCH] qemu-native: use gcc-3.x to build it if available. original patch courtesy of Richard Purdie. Signed-off-by: Rene Wagner --- .../packages/qemu/qemu-native_0.7.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb b/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb index caa6f6a..9e58b5f 100644 --- a/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb +++ b/org.handhelds.familiar/packages/qemu/qemu-native_0.7.0.bb @@ -3,3 +3,13 @@ inherit native S = "${WORKDIR}/qemu-${PV}" 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) + +} -- 2.41.1