Support cross-compiling in Makefile
authorNeil Brown <neilb@suse.de>
Thu, 18 Aug 2005 04:28:10 +0000 (04:28 +0000)
committerNeil Brown <neilb@suse.de>
Thu, 18 Aug 2005 04:28:10 +0000 (04:28 +0000)
Thanks to "Anthony Russello" <russello@iomega.com>

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Makefile

index cd40516..2360bf2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ KLIBC=/home/src/klibc/klibc-0.77
 
 KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32
 
-CC = gcc
+CC = $(CROSS_COMPILE)gcc
 CXFLAGS = -ggdb
 CWFLAGS = -Wall -Werror -Wstrict-prototypes
 SYSCONFDIR = /etc