summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-05-03 19:23:57 -0400
committerTom Rini <trini@embeddedalley.com>2009-05-03 19:23:57 -0400
commit714bed6ab1174ec126ea7d8c8655d1cfd6900325 (patch)
tree1c657c1fb43f2de3cd49bc37a685147dfa6b4da8
parent064402f637a0e65411bcb97164550afe63ec781c (diff)
base.bbclass: check_gcc3 needs to check for gcc-3.4.6 first.
Comment on what this function is used for primarily. The default gcc3-native that we build is called 'gcc-3.4.6' so look for that one first.
-rw-r--r--classes/base.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 270b05d11e..0baf0e0288 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1236,8 +1236,11 @@ def check_app_exists(app, d):
return len(which(path, app)) != 0
def check_gcc3(data):
+ # Primarly used by qemu to make sure we have a workable gcc-3.4.x.
+ # Start by checking for the program name as we build it, was not
+ # all host-provided gcc-3.4's will work.
- gcc3_versions = 'gcc-3.4 gcc34 gcc-3.4.4 gcc-3.4.6 gcc-3.4.7 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32'
+ gcc3_versions = 'gcc-3.4.6 gcc-3.4.4 gcc34 gcc-3.4.7 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32'
for gcc3 in gcc3_versions.split():
if check_app_exists(gcc3, data):