From d26221d21a851f84a639b44477f6dd94056a7058 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Fri, 26 Jul 2024 22:34:47 +0200 Subject: Print error message on empty determined CHOST MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No error exit yet, until we've fixed our problems. Signed-off-by: Andreas K. Hüttel --- src/binutils-config | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3-65-gdbad