summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-gcc3-check.inc
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2008-01-07 23:45:57 +0000
committerDaniel Willmann <daniel@totalueberwachung.de>2008-01-07 23:45:57 +0000
commit1bf5c3346ac395825d49f895922a61bcdbb238e5 (patch)
treeec4dc9efef3a2abccb92bdf4312ebd80c96a40b9 /packages/qemu/qemu-gcc3-check.inc
parent22a6de3cdd938ecd144efec7e912cb7fa20debe6 (diff)
parentbb3cd6d33b47a8aa00ad8dbef0411a7721720872 (diff)
merge of '88e2766fe8aa4c69dc8688e0554e2e6d05bb9c67'
and 'f556521018478109967b108bb830f8109aefbb0e'
Diffstat (limited to 'packages/qemu/qemu-gcc3-check.inc')
-rw-r--r--packages/qemu/qemu-gcc3-check.inc17
1 files changed, 3 insertions, 14 deletions
diff --git a/packages/qemu/qemu-gcc3-check.inc b/packages/qemu/qemu-gcc3-check.inc
index 658e72ffc3..81c3555b48 100644
--- a/packages/qemu/qemu-gcc3-check.inc
+++ b/packages/qemu/qemu-gcc3-check.inc
@@ -4,19 +4,8 @@ python __anonymous() {
path = data.getVar('PATH', d, 1)
oldOeConf = data.getVar('EXTRA_OECONF', d, 1)
if not oldOeConf: oldOeConf = ""
- if len(which(path, 'gcc-3.4.4')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.4", d)
- elif len(which(path, 'gcc-3.4')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4", d)
- elif len(which(path, 'gcc34')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc34", d)
- elif len(which(path, 'gcc33')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc33", d)
- elif len(which(path, 'gcc-3.3')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3", d)
- elif len(which(path, 'gcc-3.3.6')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.3.6", d)
- elif len(which(path, 'gcc-3.4.6')) != 0:
- data.setVar('EXTRA_OECONF', oldOeConf + " --cc=gcc-3.4.6", d)
+ gcc3 = check_gcc3(d)
+ if gcc3:
+ data.setVar('EXTRA_OECONF', oldOeConf + " --cc=" + gcc3, d)
}