Rework removal of compiler options

This commit is contained in:
Martin Kroeker
2023-06-13 19:16:06 +02:00
committed by GitHub
parent b1f6d90a11
commit ff618ac475

View File

@@ -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