[PATCH 1/1] configure: Only set TARGETFLAGS when cross-compiling with host-prefixed tools.
Brendan Shanks
bshanks at codeweavers.com
Thu Oct 21 00:12:23 CDT 2021
Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---
configure.ac | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 3f1d50a4dfc..61e772b21b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -257,7 +257,11 @@ else
fi
if test -n "$host_alias" -a "$host_alias" != "$build_alias"
then
- TARGETFLAGS="-b $host_alias $TARGETFLAGS"
+ case "$CC" in
+ *$host_alias*)
+ TARGETFLAGS="-b $host_alias $TARGETFLAGS"
+ ;;
+ esac
fi
dnl Check for flex
--
2.30.1 (Apple Git-130)
More information about the wine-devel
mailing list