From: Amerigo Wang Subject: [Patch] kvm tools: build rbtree.o from source Date: Thu, 19 May 2011 14:36:28 +0800 Message-ID: <1305786988-16120-1-git-send-email-amwang@redhat.com> Cc: penberg@kernel.org, mingo@elte.hu, WANG Cong To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56172 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932304Ab1ESGhN (ORCPT ); Thu, 19 May 2011 02:37:13 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Don't link the rbtree.o from kernel object tree, build rbtree.o from source by ourselves. Reported-by: Ingo Molnar Signed-off-by: WANG Cong --- diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 30f0f61..8cfa9a2 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -45,9 +45,10 @@ OBJS += disk/blk.o OBJS += mptable.o OBJS += threadpool.o OBJS += irq.o -OBJS += ../../lib/rbtree.o +OBJS += rbtree.o OBJS += util/rbtree-interval.o + FLAGS_BFD=$(CFLAGS) -lbfd has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD)) ifeq ($(has_bfd),y) @@ -123,6 +124,8 @@ kvm-help.d: $(KVM_INCLUDE)/common-cmds.h $(OBJS): +rbtree.o: ../../lib/rbtree.c + $(Q) $(CC) -c $(CFLAGS) $< -o $@ %.o: %.c $(E) " CC " $@ $(Q) $(CC) -c $(CFLAGS) $< -o $@