[syslinux] [PATCH 2/2] utils: Use the host toolchain to build.

Benoît Allard
Wed, 05 Apr 2017 14:32:06 -0000

The utilities are meant to run on the host machine, hence must be built using
the host toolchain.

Signed-off-by: Beno?t Allard <benoit.allard at greenbone.net>
---
 utils/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/utils/Makefile b/utils/Makefile
index dfe6259..f31f117 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -17,8 +17,9 @@
 VPATH = $(SRC)
 include $(MAKEDIR)/syslinux.mk

-CFLAGS   = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC)
-LDFLAGS  = -O2
+CC       = $(CC_FOR_BUILD)
+CFLAGS   = $(CFLAGS_FOR_BUILD) $(GCCWARN) -Os -fomit-frame-pointer
-D_FILE_OFFSET_BITS=64 -I$(SRC)
+LDFLAGS  = $(LDFLAGS_FOR_BUILD) -O2

 C_TARGETS	 = isohybrid gethostip memdiskfind
 SCRIPT_TARGETS	 = mkdiskimage
--
2.1.4