Skip to content

Commit

Permalink
scripts/Windows/build-mingw-prereqs.sh: revise determination of PREFI…
Browse files Browse the repository at this point in the history
…X with PREFIX_ROOT [networkupstools#1491]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jan 20, 2025
1 parent 420333f commit 04dc449
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/Windows/build-mingw-prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ prepareEnv() {
if [ -n "${MSYS2_PATH-}" ]; then
# Assume semi-native build for same env
[ -n "${ARCH-}" ] || ARCH="$MINGW_CHOST"
[ -n "${PREFIX-}" ] || PREFIX="$MINGW_PREFIX"
[ -n "${PREFIX_ROOT-}" ] || PREFIX="/"
[ -n "${PREFIX-}" ] || PREFIX="${PREFIX_ROOT}/$MINGW_PREFIX"
PATH="$PREFIX/bin:$PATH"
export ARCH PATH PREFIX

Expand All @@ -51,7 +52,8 @@ prepareEnv() {

# Assumes Ubuntu/Debian with mingw prepared, per README
HOST_FLAG="--host=$ARCH"
[ -n "${PREFIX-}" ] || PREFIX="/usr/$ARCH"
[ -n "${PREFIX_ROOT-}" ] || PREFIX="/usr"
[ -n "${PREFIX-}" ] || PREFIX="${PREFIX_ROOT}/${ARCH}"

export ARCH PREFIX

Expand Down

0 comments on commit 04dc449

Please sign in to comment.