From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
diff --git a/configure b/configure
index dfbff37..df4d686 100755
--- a/configure
+++ b/configure
@@ -1679,7 +1679,7 @@ configure_kvm() {
\( "$cpu" = "i386" -o "$cpu" = "x86_64" -o "$cpu" = "ia64" -o "$cpu"
= "powerpc" \); then
echo "#define USE_KVM 1" >> $config_h
echo "USE_KVM=1" >> $config_mak
- echo "CONFIG_KVM_KERNEL_INC=$kerneldir/include" >> $config_mak
+ echo "CONFIG_KVM_KERNEL_INC=$kerneldir/include" >> "config-host.mak"
if test $kvm_cap_pit = "yes" ; then
echo "USE_KVM_PIT=1" >> $config_mak
echo "#define USE_KVM_PIT 1" >> $config_h
diff --git a/kvm/libkvm/Makefile b/kvm/libkvm/Makefile
index a8f1917..8811d84 100644
--- a/kvm/libkvm/Makefile
+++ b/kvm/libkvm/Makefile
@@ -12,6 +12,7 @@ cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc
/dev/null \
CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall
CFLAGS += $(call cc-option, -fno-stack-protector, "")
CFLAGS += $(call cc-option, -fno-stack-protector-all, "")
+CFLAGS += -I$(CONFIG_KVM_KERNEL_INC)
LDFLAGS += $(CFLAGS)
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html