[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Make check-libext2fs cross-friendly



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201512837 0
# Node ID 1fbab289fed149bcc100c8c6eebb82bfd0a0acb9
# Parent  afa521cf82e68cb170ce8b536d8f968e2dc4eba6
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@xxxxxx>
---
 tools/libfsimage/Makefile        |    2 +-
 tools/libfsimage/check-libext2fs |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r afa521cf82e6 -r 1fbab289fed1 tools/libfsimage/Makefile
--- a/tools/libfsimage/Makefile Sun Jan 27 17:25:56 2008 +0000
+++ b/tools/libfsimage/Makefile Mon Jan 28 09:33:57 2008 +0000
@@ -2,7 +2,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 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 -r afa521cf82e6 -r 1fbab289fed1 tools/libfsimage/check-libext2fs
--- a/tools/libfsimage/check-libext2fs  Sun Jan 27 17:25:56 2008 +0000
+++ b/tools/libfsimage/check-libext2fs  Mon Jan 28 09:33:57 2008 +0000
@@ -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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.