Pass $HOST to individual script with a --host parameter
This avoids ambiguity on distributions (such as openSUSE) where the HOST environment variable already is set, to the hostname.
This commit is contained in:
1 parent
b5ae2b5cc7
commit
577400a5f7
5 files changed
+39
-14
No files matched your search
@@ -4,6 +4,7 @@ set -e
|
||||
|
||||
DEFAULT_WIN32_WINNT=0x600
|
||||
DEFAULT_MSVCRT=ucrt
|
||||
unset HOST
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
@@ -16,6 +17,9 @@ while [ $# -gt 0 ]; do
|
||||
--with-default-msvcrt=*)
|
||||
DEFAULT_MSVCRT="${1#*=}"
|
||||
;;
|
||||
--host=*)
|
||||
HOST="${1#*=}"
|
||||
;;
|
||||
*)
|
||||
PREFIX="$1"
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user