From b124770528e333fcb4efb408d7bbf931ccef3b6e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 28 Jan 2008 09:33:57 +0000 Subject: Make check-libext2fs cross-friendly check-libext2fs was calling host gcc; pass $CC from Makefile so it can call the cross-compiler instead. Signed-off-by: Aron Griffis --- tools/libfsimage/Makefile | 2 +- tools/libfsimage/check-libext2fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/libfsimage') diff --git a/tools/libfsimage/Makefile b/tools/libfsimage/Makefile index 5dc1e65f99..fd40686201 100644 --- a/tools/libfsimage/Makefile +++ b/tools/libfsimage/Makefile @@ -2,7 +2,7 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y = common ufs reiserfs iso9660 fat -SUBDIRS-y += $(shell ./check-libext2fs) +SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs) .PHONY: all all install clean: diff --git a/tools/libfsimage/check-libext2fs b/tools/libfsimage/check-libext2fs index 2f654cc4af..e6a8d186fc 100755 --- a/tools/libfsimage/check-libext2fs +++ b/tools/libfsimage/check-libext2fs @@ -9,7 +9,7 @@ int main() } EOF -gcc -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1 +${CC:-gcc} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1 if [ $? = 0 ]; then echo ext2fs-lib else -- cgit v1.2.3