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

[Xen-devel] [PATCH] Fix 64-bit foreign header check



# HG changeset patch
# User john.levon@xxxxxxx
# Date 1187270597 25200
# Node ID f78511fe84879f080875738ddf29081ee30ef0b1
# Parent  e3c3b44f29ad067c8a25e58c0e35265fe64eaa38
Fix 64-bit foreign header check

If a 64-bit build is chosen, we need to compile the checker program with -m64.
Since the Xen build doesn't support multilib GCC on Linux, hack it in for
Solaris for altering HOSTCFLAGS appropriately.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/config/SunOS.mk b/config/SunOS.mk
--- a/config/SunOS.mk
+++ b/config/SunOS.mk
@@ -35,6 +35,12 @@ endif
 
 CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__
 
+# We don't support cross-compiling, as we need to force the host compiler into
+# 64-bit mode as necessary: the foreign header check uses HOSTCFLAGS.
+HOSTCFLAGS_x86_32 = -m32
+HOSTCFLAGS_x86_64 = -m64
+HOSTCFLAGS += $(HOSTCFLAGS_$(XEN_TARGET_ARCH))
+
 CTFCONVERT = $(SOLARIS_BUILD_TOOLS)/onbld/bin/i386/ctfconvert
 CTFMERGE = $(SOLARIS_BUILD_TOOLS)/onbld/bin/i386/ctfmerge
 POST_PROCESS_O= $(CTFCONVERT) -i -L XEN_FULLVERSION $@

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


 


Rackspace

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