diff options
author | 2024-07-26 22:34:47 +0200 | |
---|---|---|
committer | 2024-07-26 22:34:47 +0200 | |
commit | d26221d21a851f84a639b44477f6dd94056a7058 (patch) | |
tree | 7b5f2e2d58a4fd3a61ffb40135d400aa59cbd427 /src | |
parent | Read CHOST with portageq from EROOT and not / (diff) | |
download | binutils-config-d26221d21a851f84a639b44477f6dd94056a7058.tar.gz binutils-config-d26221d21a851f84a639b44477f6dd94056a7058.tar.bz2 binutils-config-d26221d21a851f84a639b44477f6dd94056a7058.zip |
Print error message on empty determined CHOST
No error exit yet, until we've fixed our problems.
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'src')
-rwxr-xr-x | src/binutils-config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/binutils-config b/src/binutils-config index a28366a..c8de31a 100755 --- a/src/binutils-config +++ b/src/binutils-config @@ -409,6 +409,12 @@ list_profiles() { set_HOST() { # Set HOST to CHOST if it isn't already set : ${HOST:=${CHOST:-$(portageq envvar CHOST)}} + + if [[ -z ${HOST} ]] ; then + eerror "Cannot determine CHOST. Something is badly broken." + # once our current stage build problems are fixed, let's enable this: + # exit 1 + fi } ENV_D="${EROOT}etc/env.d/binutils" |