ia64/xen-unstable

view tools/libfsimage/check-libext2fs @ 16920:1fbab289fed1

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 28 09:33:57 2008 +0000 (2008-01-28)
parents f54e29a3be1f
children 2c48ed7e303d
line source
1 #!/bin/bash
3 cat >ext2-test.c <<EOF
4 #include <ext2fs/ext2fs.h>
6 int main()
7 {
8 ext2fs_open2;
9 }
10 EOF
12 ${CC:-gcc} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
13 if [ $? = 0 ]; then
14 echo ext2fs-lib
15 else
16 echo ext2fs
17 fi
19 rm -f ext2-test ext2-test.c
21 exit 0