xref: /OK3568_Linux_fs/buildroot/package/netsurf/0002-do-not-cross-compile-nsgenbind.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 2419ad79b25fcc1746178aba609fddbb0aa8c9e0 Mon Sep 17 00:00:00 2001
2From: Francois Perrad <francois.perrad@gadz.org>
3Date: Sat, 1 Dec 2018 16:10:13 +0100
4Subject: [PATCH] build nsgenbind for the build machine
5
6The nsgenbind tool is meant to be executed on the build machine during
7the build, so it should not be built with the cross-compiler, but with
8the native compiler.
9
10Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Makefile b/Makefile
16index f279f01..5698c87 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -110,7 +110,7 @@ endef
20
21 # prefixed install macro for each host sub target
22 define do_build_prefix_install
23-	$(MAKE) install --directory=$1 HOST=$(BUILD) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
24+	$(MAKE) install --directory=$1 HOST=$(BUILD) CC=$(BUILD_CC) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
25
26 endef
27
28--
292.17.1
30
31