summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-gcc3-check.inc
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-31 16:05:19 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-31 16:05:19 +0000
commitc5ce5d13067f1b2a4e86bc0b9c01c485170be5e2 (patch)
treee2b7e148fa67224fb71a5c33a6ba1e5c8658ba03 /packages/qemu/qemu-gcc3-check.inc
parenta23d5bfd390b32cd85f03ceb9f8ee9b05deb0168 (diff)
parent6d4672f1bd5646f20d5c1522bda48c9534f27e48 (diff)
merge of 'b1eb3466dafc9eb0908b3c6a5749e44c83d43bb7'
and 'b6f7470fdaebd8e390033a44122a002d406951ab'
Diffstat (limited to 'packages/qemu/qemu-gcc3-check.inc')
-rw-r--r--packages/qemu/qemu-gcc3-check.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/qemu/qemu-gcc3-check.inc b/packages/qemu/qemu-gcc3-check.inc
index 96b79fdf14..658e72ffc3 100644
--- a/packages/qemu/qemu-gcc3-check.inc
+++ b/packages/qemu/qemu-gcc3-check.inc
@@ -1,10 +1,12 @@
python __anonymous() {
from bb import which, data
- path = data.getVar('PATH', d)
- oldOeConf = data.getVar('EXTRA_OECONF', d)
+ path = data.getVar('PATH', d, 1)
+ oldOeConf = data.getVar('EXTRA_OECONF', d, 1)
if not oldOeConf: oldOeConf = ""
- if len(which(path, 'gcc-3.4')) != 0:
+ 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)