From 456a67e63fd7d923aa56199cb42447b853ae9a66 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 10 Dec 2022 15:15:47 +0000 Subject: [PATCH] zshrc: Set --build for DJGPP Without it, it assumes it's not cross-compiling if wine is installed. And then fails. --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index d9d348b..56038c0 100644 --- a/zshrc +++ b/zshrc @@ -471,6 +471,9 @@ cross() { export PATH="$prefix/cross-djgpp/bin:$PATH" export cross_host="i586-pc-msdosdjgpp" + local build="$(LC_ALL=C gcc -v 2>&1 | + awk '/^Target:/ { print $2 }')" + export objfw_configure_flags="--build=$build" ;; ios | iossim) if ! __has_command xcrun; then