From: john.levon@sun.com Subject: [PATCH] Fix 64-bit foreign header check Date: Thu, 16 Aug 2007 06:23:33 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # 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 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 $@