diff mbox

[02/10] tilo: compile maketilo with host toolchain

Message ID 1386458819-6590-3-git-send-email-aaro.koskinen@iki.fi
State Superseded
Delegated to: David Miller
Headers show

Commit Message

Aaro Koskinen Dec. 7, 2013, 11:26 p.m. UTC
Use HOSTCC to compile maketilo to enable cross-compilation.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 tilo/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tilo/Makefile b/tilo/Makefile
index 89b540fc27a9..800e65f02767 100644
--- a/tilo/Makefile
+++ b/tilo/Makefile
@@ -27,7 +27,7 @@  OBJS = crt0.o tilo.o $(OBJS_COMMON) malloc.o
 OBJS2 = crt0l.o tilol.o $(OBJS_COMMON) mallocl.o
 
 maketilo: maketilo.c b.h b2.h
-	$(CC) $(CFLAGS) maketilo.c -o maketilo
+	$(HOSTCC) $(HOSTCFLAGS) -g maketilo.c -o maketilo
 
 b.h : b.out $(BIN2H)
 	$(BIN2H) -l BOOT_LEN boot_loader $< > $@ || ($(RM) $@; exit 1)