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-devel

[Xen-devel] [PATCH] Make check-libext2fs cross-friendly

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make check-libext2fs cross-friendly
From: Aron Griffis <aron@xxxxxx>
Date: Sun, 27 Jan 2008 16:40:41 -0500
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 27 Jan 2008 13:43:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I found this while cross-compiling for ia64 on x86_64.  The script
would detect the libext2fs version on the host rather in the sys-root,
then the build would fail.

Thanks,
Aron

# HG changeset patch
# User Aron Griffis <aron@xxxxxx>
# Date 1201468421 18000
# Node ID 32d4dda41994b04fcf233e9020bfd1e6d59d4552
# Parent  b79802517a75a23abb88eda900ff802810a6add6
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>

diff -r b79802517a75 -r 32d4dda41994 tools/libfsimage/Makefile
--- a/tools/libfsimage/Makefile Tue Jan 22 09:04:41 2008 -0700
+++ b/tools/libfsimage/Makefile Sun Jan 27 16:13:41 2008 -0500
@@ -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 b79802517a75 -r 32d4dda41994 tools/libfsimage/check-libext2fs
--- a/tools/libfsimage/check-libext2fs  Tue Jan 22 09:04:41 2008 -0700
+++ b/tools/libfsimage/check-libext2fs  Sun Jan 27 16:13:41 2008 -0500
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make check-libext2fs cross-friendly, Aron Griffis <=