xref: /OK3568_Linux_fs/buildroot/boot/syslinux/0005-lzo-Use-the-host-toolchain-for-prepcore.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 83e1f00990c25554723609bb549e18b987034317 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: =?UTF-8?q?Beno=C3=AEt=20Allard?= <benoit.allard@greenbone.net>
3*4882a593SmuzhiyunDate: Thu, 6 Apr 2017 09:43:46 +0200
4*4882a593SmuzhiyunSubject: [PATCH] lzo: Use the host toolchain for prepcore
5*4882a593SmuzhiyunMIME-Version: 1.0
6*4882a593SmuzhiyunContent-Type: text/plain; charset=UTF-8
7*4882a593SmuzhiyunContent-Transfer-Encoding: 8bit
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSigned-off-by: Benoît Allard <benoit.allard@greenbone.net>
10*4882a593Smuzhiyun---
11*4882a593Smuzhiyun lzo/Makefile | 7 +++++--
12*4882a593Smuzhiyun 1 file changed, 5 insertions(+), 2 deletions(-)
13*4882a593Smuzhiyun
14*4882a593Smuzhiyundiff --git a/lzo/Makefile b/lzo/Makefile
15*4882a593Smuzhiyunindex 29f1fa6..c016e5a 100644
16*4882a593Smuzhiyun--- a/lzo/Makefile
17*4882a593Smuzhiyun+++ b/lzo/Makefile
18*4882a593Smuzhiyun@@ -11,10 +11,13 @@
19*4882a593Smuzhiyun ## -----------------------------------------------------------------------
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun VPATH = $(SRC)
22*4882a593Smuzhiyun-include $(MAKEDIR)/build.mk
23*4882a593Smuzhiyun+include $(MAKEDIR)/syslinux.mk
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun INCLUDES += -I$(SRC)/include
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun+%.o: %.c
28*4882a593Smuzhiyun+	$(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS_FOR_BUILD) $(INCLUDES) -c -o $@ $<
29*4882a593Smuzhiyun+
30*4882a593Smuzhiyun LIBOBJS = $(patsubst %.c,%.o,$(subst $(SRC)/,,$(wildcard $(SRC)/src/*.c)))
31*4882a593Smuzhiyun LIB     = lzo.a
32*4882a593Smuzhiyun BINS    = prepcore
33*4882a593Smuzhiyun@@ -30,7 +33,7 @@ $(LIB) : $(LIBOBJS)
34*4882a593Smuzhiyun 	$(RANLIB) $@
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun prepcore : prepcore.o $(LIB)
37*4882a593Smuzhiyun-	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
38*4882a593Smuzhiyun+	$(CC_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $^ $(LIBS)
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun tidy dist clean spotless:
41*4882a593Smuzhiyun 	rm -f $(BINS)
42*4882a593Smuzhiyun--
43*4882a593Smuzhiyun2.1.4
44*4882a593Smuzhiyun
45