0005-lzo-Use-the-host-toolchain-for-prepcore.patch 1.2 KB

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