diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-21 18:48:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-21 18:48:29 -0400 |
commit | 08270929a5bd1ced4c8bc827ccfc1295e567e71d (patch) | |
tree | 15f1ea36819723810fb65183a0542dbaa44f5e7f /gcc-config | |
parent | drop cvs tags (diff) | |
download | gcc-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-x | gcc-config | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)) |