summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-08-18 04:27:34 +0000
committerNeil Brown <neilb@suse.de>2005-08-18 04:27:34 +0000
commitbaa2cd47e56f0a387685fb923ce9663b42df9fc2 (patch)
treebfb7894a2ae001aff05e4efbf8a593b5eb88dd28
parentd6e5bf44e36e4f90bdb0eb8a7fa280b82b8830c9 (diff)
downloadmdadm-baa2cd47e56f0a387685fb923ce9663b42df9fc2.tar.gz
mdadm-baa2cd47e56f0a387685fb923ce9663b42df9fc2.tar.xz
mdadm-baa2cd47e56f0a387685fb923ce9663b42df9fc2.zip
Support cross-compiling in Makefile
Thanks to "Anthony Russello" <russello@iomega.com> Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aca9b40..4d15d42 100644
--- 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