aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-yasm.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/build-yasm.sh b/build-yasm.sh
index 0fd897d9..86e50f21 100755
--- a/build-yasm.sh
+++ b/build-yasm.sh
@@ -94,13 +94,8 @@ mkdir -p "$BUILD_DIR/src" && copy_directory "$SRC_DIR/yasm" "$BUILD_DIR/src"
fail_panic "Could not copy yasm sources to: $BUILD_DIR/src"
CONFIGURE_FLAGS="--disable-nls --disable-rpath --prefix=$BUILD_DIR/prefix"
-if [ "$MINGW" = "yes" ]; then
- # Required for a proper mingw cross compile
- CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --host=i586-pc-mingw32"
-fi
-
-if [ "$DARWIN" = "yes" ]; then
- # Required for a proper darwin cross compile
+if [ "$MINGW" = "yes" -o "$DARWIN" = "yes" ]; then
+ # Required for a proper mingw or darwin cross compile
CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --host=$ABI_CONFIGURE_HOST"
fi