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