diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-28 09:33:57 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-28 09:33:57 +0000 |
commit | b124770528e333fcb4efb408d7bbf931ccef3b6e (patch) | |
tree | 65fd4abf5475ed08b28bf8488c89d1ec539967b3 /tools | |
parent | 21ffff5e7f5ac0a54c5b79ff0734ab12b706eb9e (diff) | |
download | xen-b124770528e333fcb4efb408d7bbf931ccef3b6e.tar.gz xen-b124770528e333fcb4efb408d7bbf931ccef3b6e.tar.bz2 xen-b124770528e333fcb4efb408d7bbf931ccef3b6e.zip |
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 <aron@hp.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libfsimage/Makefile | 2 | ||||
-rwxr-xr-x | tools/libfsimage/check-libext2fs | 2 |
2 files changed, 2 insertions, 2 deletions
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 |