aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-21 18:48:29 -0400
committerMike Frysinger <vapier@gentoo.org>2012-03-21 18:48:29 -0400
commit08270929a5bd1ced4c8bc827ccfc1295e567e71d (patch)
tree15f1ea36819723810fb65183a0542dbaa44f5e7f /gcc-config
parentdrop cvs tags (diff)
downloadgcc-config-08270929a5bd1ced4c8bc827ccfc1295e567e71d.tar.gz
gcc-config-08270929a5bd1ced4c8bc827ccfc1295e567e71d.tar.bz2
gcc-config-08270929a5bd1ced4c8bc827ccfc1295e567e71d.zip
gcc-config: expect CTARGET to always be set in configs
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-config b/gcc-config
index c43d7f6..eb87dc3 100755
--- a/gcc-config
+++ b/gcc-config
@@ -460,6 +460,14 @@ list_profiles() {
[[ ${x} == */config* ]] && continue
source_var CTARGET "${x}"
+ # Older native profiles would not set CTARGET.
+ if [[ -z ${CTARGET} ]] ; then
+ if [[ ${x} == */${REAL_CHOST}-* ]] ; then
+ CTARGET=${REAL_CHOST}
+ else
+ ewarn "broken config file: ${x}"
+ fi
+ fi
((++i))