From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muli Ben-Yehuda Subject: [PATCH] qemu binary should depend on libkvm.a Date: Tue, 6 Feb 2007 21:31:09 +0200 Message-ID: <20070206193109.GD4292@rhun.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Avi Kivity Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642