aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-07-26 22:34:47 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-07-26 22:34:47 +0200
commitd26221d21a851f84a639b44477f6dd94056a7058 (patch)
tree7b5f2e2d58a4fd3a61ffb40135d400aa59cbd427 /src
parentRead CHOST with portageq from EROOT and not / (diff)
downloadbinutils-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-xsrc/binutils-config6
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"