Browse Source

Protect CROSS_PATH against spurious addition of linebreaks from isolated dashes

fix for #3989
tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
3effdc1505
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      c_check

+ 5
- 2
c_check View File

@@ -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…
Cancel
Save