aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libfsimage')
-rw-r--r--tools/libfsimage/Makefile2
-rwxr-xr-xtools/libfsimage/check-libext2fs2
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