Commit d2e70f71 authored by Martin Storsjö's avatar Martin Storsjö

contrib: vncclient: Backport a patch for picking the right AR tool for cross compilation

In many cases, the host AR tool just happens to work fine for e.g.
mingw cross builds, but clang targeting x86 mingw recently started
generating code that trips up GNU binutils ar, with cases like this:

/usr/bin/ar: cursor.o: Unrecognized storage class 0 for .rdata symbol `__xmm@01010101010101010101010101010101'
parent eb07b4ea
From 2dc984dcaa28fd4df90fe011a58fd8fe329bc7a1 Mon Sep 17 00:00:00 2001
From: Thomas Anderson <>
Date: Wed, 15 Apr 2015 03:42:32 +0000
Subject: [PATCH] Use AC_CHECK_TOOL for cross-compiling support.
When cross-compiling the ar program has the appropriate prefix prepended.
Respect that here and have autotools autodetect the appropriate tool.
--- | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ b/
index bcf51283..3069eedd 100644
--- a/
+++ b/
@@ -24,7 +24,7 @@ test "x$GCC" = "xyes" && CFLAGS="$CFLAGS -Wall"
-AC_PATH_PROG([AR], [ar], [/usr/bin/ar],
+AC_CHECK_TOOL([AR], [ar], [/usr/bin/ar],
# Options
......@@ -24,6 +24,7 @@ vncclient: LibVNCServer-$(VNCCLIENT_VERSION).tar.gz .sum-vncclient
$(APPLY) $(SRC)/vncclient/vnc-gnutls-pkg.patch
$(APPLY) $(SRC)/vncclient/gnutls-recent.patch
$(APPLY) $(SRC)/vncclient/vnc-gnutls-anon.patch
$(APPLY) $(SRC)/vncclient/cross-ar.patch
$(call pkg_static,"")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment