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