ia64/xen-unstable

changeset 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 afa521cf82e6
children ed8ab1a36b09
files tools/libfsimage/Makefile tools/libfsimage/check-libext2fs
line diff
     1.1 --- a/tools/libfsimage/Makefile	Sun Jan 27 17:25:56 2008 +0000
     1.2 +++ b/tools/libfsimage/Makefile	Mon Jan 28 09:33:57 2008 +0000
     1.3 @@ -2,7 +2,7 @@ XEN_ROOT = ../..
     1.4  include $(XEN_ROOT)/tools/Rules.mk
     1.5  
     1.6  SUBDIRS-y = common ufs reiserfs iso9660 fat
     1.7 -SUBDIRS-y += $(shell ./check-libext2fs)
     1.8 +SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs)
     1.9  
    1.10  .PHONY: all
    1.11  all install clean:
     2.1 --- a/tools/libfsimage/check-libext2fs	Sun Jan 27 17:25:56 2008 +0000
     2.2 +++ b/tools/libfsimage/check-libext2fs	Mon Jan 28 09:33:57 2008 +0000
     2.3 @@ -9,7 +9,7 @@ int main()
     2.4  }
     2.5  EOF
     2.6  
     2.7 -gcc -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
     2.8 +${CC:-gcc} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
     2.9  if [ $? = 0 ]; then
    2.10  	echo ext2fs-lib
    2.11  else