aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/vgabios/files/build-cc.patch
blob: b64e5efd847e83509df042e8906b41d5b3999e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Use the host compiler to build the tools we need at runtime.

Upstream-Status: Pending
Signed-off-by: Ross Burton <ross.burton@arm.com>

Index: Makefile
===================================================================
--- a/Makefile	(revision 298)
+++ b/Makefile	(working copy)
@@ -5,6 +5,7 @@
 SHELL = /bin/sh
 
 CC      = gcc
+HOSTCC = gcc
 CFLAGS  = -g -O2 -Wall -Wstrict-prototypes
 LDFLAGS = 
 
@@ -79,10 +80,10 @@
 	tar czvf ../$(RELEASE).tgz --exclude .svn -C .. $(RELEASE)/
 
 biossums: biossums.c
-	$(CC) -o biossums biossums.c
+	$(HOSTCC) -o biossums biossums.c
 
 vbetables-gen: vbetables-gen.c
-	$(CC) -o vbetables-gen vbetables-gen.c
+	$(HOSTCC) -o vbetables-gen vbetables-gen.c
 
 vbetables.h: vbetables-gen
 	./vbetables-gen > $@