From ff618ac475bbbc301c64fa85e2f426af2320dc91 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 13 Jun 2023 19:16:06 +0200 Subject: [PATCH] Rework removal of compiler options --- c_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_check b/c_check index aeb9779e4..2e0e377bd 100755 --- a/c_check +++ b/c_check @@ -35,12 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/" fi -bn=`basename "$compiler_name"` +cn= `echo $compiler_name | sed -e 's/ -.*//'` +bn=`basename "$cn"` case "$bn" in *-*) if [ "$bn" != '-' ]; then cross_suffix="$cross_suffix${bn%-*}-" - cross_suffix=`echo $cross_suffix|sed -e 's/ -$//'` fi esac