Merge pull request #3996 from martin-frbg/issue3989
Protect CROSS_SUFFIX against spurious linebreaks from isolated dashes
This commit is contained in:
commit
326b200b08
7
c_check
7
c_check
|
@ -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=""
|
||||
|
|
Loading…
Reference in New Issue