[oe-commits] Tom Rini : 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.

git version control git at git.openembedded.org
Mon Jul 6 10:22:48 UTC 2009


Module: openembedded.git
Branch: stable/2009
Commit: 6ca79d0206a64803a28fd78b0f57cb6bcff04400
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6ca79d0206a64803a28fd78b0f57cb6bcff04400

Author: Tom Rini <trini at embeddedalley.com>
Date:   Wed Jul  1 08:54:07 2009 +0000

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.

Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
Acked-by: Koen Kooi <koen at openembedded.org>

---

 classes/base.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 96e99f8..b08fb91 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1232,8 +1232,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):





More information about the Openembedded-commits mailing list