From e227ea5006015cde158def727c2b7f60c7b10541 Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Thu, 31 Mar 2011 22:33:02 +0200 Subject: [PATCH] kvm tools: Fix compilation on x86_64 Compilation on x86_64 failed with: [...] In file included from /usr/include/features.h:386:0, from /usr/include/stdint.h:26, from /usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/stdint.h:3, from include/kvm/e820.h:4, from bios/e820.c:1: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. make: *** [bios/bios-rom.bin] Error 1 This is caused by a typo in the Makefile and because gnu/stubs.h (and friends) expect to see __x86_64__. That's trivial to fix. Acked-by: Cyrill Gorcunov Signed-off-by: Paul Bolle Signed-off-by: Pekka Enberg --- tools/kvm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index bfb3deedd76b..b2aecc1cc253 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -36,9 +36,9 @@ LIBS += -lrt uname_M := $(shell uname -m | sed -e s/i.86/i386/) ifeq ($(uname_M),i386) DEFINES += -DCONFIG_X86_32 -ifeq ($(uname_M),x86_64) - DEFINES += -DCONFIG_X86_64 endif +ifeq ($(uname_M),x86_64) + DEFINES += -DCONFIG_X86_64 -D__x86_64__ endif DEFINES += -D_FILE_OFFSET_BITS=64 -- 2.39.5