kvm tools: build rbtree.o from source
PATCH 1/1 kvm tools: build rbtree.o from source
Don't link the rbtree.o from kernel object tree, build rbtree.o from source by ourselves.
Reported-by Ingo Molnar <[email protected]>
Signed-off-by WANG Cong <[email protected]>
---
tools/kvm/Makefile +4 -1
@@ -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 $@
Quoted 5 lines · Amerigo Wang
Don't link the rbtree.o from kernel object tree, build rbtree.o from source by ourselves.
Reported-by Ingo Molnar <[email protected]>Signed-off-by WANG Cong <[email protected]>
Nice, thanks!
Acked-by Ingo Molnar <[email protected]>
Ingo