Skip to content

Commit

Permalink
Merge pull request #3996 from martin-frbg/issue3989
Browse files Browse the repository at this point in the history
Protect CROSS_SUFFIX against spurious linebreaks from isolated dashes
  • Loading branch information
martin-frbg committed Apr 7, 2023
2 parents 654d87d + 3effdc1 commit 326b200
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions c_check
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
fi

bn=`basename $compiler_name`
bn=`basename \"$compiler_name\"`

case "$bn" in
*-*) cross_suffix="$cross_suffix${bn%-*}-"
*-*) if [ "$bn" != '-']; then
cross_suffix="$cross_suffix${bn%-*}-"
fi
esac

compiler=""
Expand Down

0 comments on commit 326b200

Please sign in to comment.