configure: Correctly derive the target from CC if it's set to an absolute path.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56279
This commit is contained in:
Vibhav Pant 2024-02-01 19:03:44 +05:30 committed by Alexandre Julliard
parent 9bca18e796
commit 36fa4da337
2 changed files with 4 additions and 0 deletions

2
configure vendored
View file

@ -10657,6 +10657,8 @@ then :
while test $# -ge 1
do
case "$1" in
*/*-gcc) target=`expr "$1" : '.*/\(.*\)-gcc'` ;;
*/*-clang) target=`expr "$1" : '.*/\(.*\)-clang'` ;;
*-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
*-clang) target=`expr "$1" : '\(.*\)-clang'` ;;
esac

View file

@ -882,6 +882,8 @@ do
while test $# -ge 1
do
case "$1" in
*/*-gcc) target=`expr "$1" : '.*/\(.*\)-gcc'` ;;
*/*-clang) target=`expr "$1" : '.*/\(.*\)-clang'` ;;
*-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
*-clang) target=`expr "$1" : '\(.*\)-clang'` ;;
esac