Support cross compilation to non-windows targets

Don't have --host/$HOST imply targeting Windows, but actually inspect
the target triple where necessary.
This commit is contained in:
Martin Storsjö committed 2023-04-26 19:18:24 +03:00
1 parent c49af4399a
commit 06f44cda62
4 files changed
+57 -24

No files matched your search

+5 -1
View File
@@ -62,7 +62,11 @@ fi
if [ -n "$HOST" ]; then
CONFIGFLAGS="$CONFIGFLAGS --host=$HOST"
CROSS_NAME=-$HOST
EXEEXT=.exe
case $HOST in
*-mingw32)
EXEEXT=.exe
;;
esac
else
case $(uname) in
MINGW*)