[PATCH] qemu binary should depend on libkvm.a

Muli Ben-Yehuda
2007-02-06T19:31:09Z

Without this patch making a change to libkvm.a will not cause the qemu
binary to be re-linked. Tested on x86-64.

Signed-off-by: Muli Ben-Yehuda <muli-7z/5BgaJwgfQT0dZR+AlfA@public.gmane.org>

diff -r 9a3e101daf18 -r 990ff7d37333 qemu/Makefile.target
--- a/qemu/Makefile.target Tue Feb 06 17:05:56 2007 +0200
+++ b/qemu/Makefile.target Tue Feb 06 21:26:46 2007 +0200
@@ -25,6 +25,8 @@ CFLAGS+=-Wall -O2 -g -fno-strict-aliasin
#CFLAGS+=-Werror
LDFLAGS+=-g
LIBS=
+# libraries we depend on
+DEPLIBS=
HELPER_CFLAGS=$(CFLAGS)
DYNGEN=../dyngen$(EXESUF)
# user emulator name
@@ -331,6 +333,7 @@ ifdef CONFIG_KVM_KERNEL_INC
ifdef CONFIG_KVM_KERNEL_INC
DEFINES += -I $(CONFIG_KVM_KERNEL_INC)
LIBS += -lkvm
+DEPLIBS += ../user/libkvm.a
endif

# SCSI layer
@@ -437,7 +440,7 @@ SDL_LIBS := $(filter-out -mwindows, $(SD
SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
endif

-$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
+$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a $(DEPLIBS)
$(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)

cocoa.o: cocoa.m

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo