mirror of
https://github.com/mpv-player/mpv
synced 2025-04-18 05:07:18 +00:00
configure: fix target triplet check for mingw targets
mingw32 and mingw64's recommended triplets are i686-pc-mingw32 / x86_64-w64-mingw32, neither has mingw32 in the middle.
This commit is contained in:
parent
0c2a302948
commit
75bc1591e8
6
configure
vendored
6
configure
vendored
@ -1268,7 +1268,8 @@ if test -z "$_target" ; then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else # if test -z "$_target"
|
else # if test -z "$_target"
|
||||||
system_name=$(echo $_target | cut -d '-' -f 2)
|
for i in 2 3; do
|
||||||
|
system_name=$(echo $_target | cut -d '-' -f $i)
|
||||||
case "$(echo $system_name | tr A-Z a-z)" in
|
case "$(echo $system_name | tr A-Z a-z)" in
|
||||||
linux) system_name=Linux ;;
|
linux) system_name=Linux ;;
|
||||||
freebsd) system_name=FreeBSD ;;
|
freebsd) system_name=FreeBSD ;;
|
||||||
@ -1282,7 +1283,10 @@ else # if test -z "$_target"
|
|||||||
morphos) system_name=MorphOS ;;
|
morphos) system_name=MorphOS ;;
|
||||||
amigaos) system_name=AmigaOS ;;
|
amigaos) system_name=AmigaOS ;;
|
||||||
mingw32*) system_name=MINGW32 ;;
|
mingw32*) system_name=MINGW32 ;;
|
||||||
|
*) continue ;;
|
||||||
esac
|
esac
|
||||||
|
break
|
||||||
|
done
|
||||||
# We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
|
# We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
|
||||||
host_arch=$(echo $_target | cut -d '-' -f 1)
|
host_arch=$(echo $_target | cut -d '-' -f 1)
|
||||||
if test $(echo $host_arch) != "x86_64" ; then
|
if test $(echo $host_arch) != "x86_64" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user