Fix 64-bit foreign header check
PATCH 1/1 Fix 64-bit foreign header check
# HG changeset patch
# User [email protected]
# 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 <[email protected]>
config/SunOS.mk +6 -0
@@ -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 $@