WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Make check-libext2fs cross-friendly
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Jan 2008 03:00:07 -0800
Delivery-date: Mon, 28 Jan 2008 03:00:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Make check-libext2fs cross-friendly, Xen patchbot-unstable <=