1From 4df2e7c0ae84bfbdba0ed285c0664aa089b38b7e Mon Sep 17 00:00:00 2001 2From: Carlos Santos <casantos@datacom.ind.br> 3Date: Sat, 30 Sep 2017 19:49:55 -0300 4Subject: [PATCH] extlinux: Use the host toolchain to build. 5 6It is meant to run on the host machine, hence must be built using the 7host toolchain. 8 9Signed-off-by: Carlos Santos <casantos@datacom.ind.br> 10--- 11 extlinux/Makefile | 12 ++++++------ 12 1 file changed, 6 insertions(+), 6 deletions(-) 13 14diff --git a/extlinux/Makefile b/extlinux/Makefile 15index 02d1db51..5c4baa5a 100644 16--- a/extlinux/Makefile 17+++ b/extlinux/Makefile 18@@ -18,9 +18,9 @@ include $(MAKEDIR)/syslinux.mk 19 20 OPTFLAGS = -g -Os 21 INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libinstaller 22-CFLAGS = $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \ 23+CFLAGS = $(CFLAGS_FOR_BUILD) $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \ 24 $(OPTFLAGS) $(INCLUDES) 25-LDFLAGS = 26+LDFLAGS = $(LDFLAGS_FOR_BUILD) 27 28 SRCS = main.c \ 29 mountinfo.c \ 30@@ -52,16 +52,16 @@ spotless: clean 31 installer: extlinux 32 33 extlinux: $(OBJS) 34- $(CC) $(LDFLAGS) -o $@ $^ 35+ $(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^ 36 37 strip: 38 $(STRIP) extlinux 39 40 %.o: %.c 41- $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $< 42+ $(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $< 43 %.i: %.c 44- $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $< 45+ $(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $< 46 %.s: %.c 47- $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $< 48+ $(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $< 49 50 -include .*.d 51-- 522.13.5 53 54