mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
MXE setup: only set HOST if isn't set outside
This commit is contained in:
parent
e24136cf6e
commit
6f5423bd9b
@ -13,7 +13,8 @@ set -e
|
||||
#
|
||||
|
||||
# This defaults to a 64bit executable. If you need a 32bit executable
|
||||
# then change ARCHITECTURE to 32.
|
||||
# then change ARCHITECTURE to 32. Alternatively set the HOST variable
|
||||
# outside the script to something like "x86_64-w64-mingw32.static".
|
||||
ARCHITECTURE=${ARCHITECTURE:-64}
|
||||
# Installation defaults to ~/mxe.
|
||||
INSTALL_DIR=${INSTALL_DIR:-$HOME/mxe}
|
||||
@ -25,10 +26,12 @@ PARALLEL=${PARALLEL:-$(nproc --all)}
|
||||
# END OF SETUP -- usually no need to change anything else
|
||||
#
|
||||
|
||||
if [[ "$ARCHITECTURE" == 32 ]]; then
|
||||
HOST=i686-w64-mingw32.static
|
||||
else
|
||||
HOST=x86_64-w64-mingw32.static
|
||||
if [[ -z $HOST ]]; then
|
||||
if [[ "$ARCHITECTURE" == 32 ]]; then
|
||||
HOST=i686-w64-mingw32.static
|
||||
else
|
||||
HOST=x86_64-w64-mingw32.static
|
||||
fi
|
||||
fi
|
||||
|
||||
SRCDIR=$(pwd)
|
||||
|
Loading…
Reference in New Issue
Block a user