From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeuRS-0004AH-U9 for qemu-devel@nongnu.org; Wed, 13 Jun 2012 16:45:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeuRQ-0005h5-FP for qemu-devel@nongnu.org; Wed, 13 Jun 2012 16:45:26 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:39387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeuRQ-0005gc-9G for qemu-devel@nongnu.org; Wed, 13 Jun 2012 16:45:24 -0400 From: Stefan Weil Date: Wed, 13 Jun 2012 22:45:20 +0200 Message-Id: <1339620320-23405-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] Makefile: Fix linker failure for vscclient List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org When QEMU was built with the simple trace backend, linking failed: LINK vscclient oslib-posix.o: In function `trace_qemu_memalign': qemu/bin/debug/x86/./trace.h:31: undefined reference to `trace3' oslib-posix.o: In function `trace_qemu_vmalloc': qemu/bin/debug/x86/./trace.h:35: undefined reference to `trace2' oslib-posix.o: In function `trace_qemu_vfree': qemu/bin/debug/x86/./trace.h:39: undefined reference to `trace1' collect2: error: ld returned 1 exit status make: *** [vscclient] Fehler 1 Signed-off-by: Stefan Weil --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32550cb..9b6c9f7 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,8 @@ install-libcacard: libcacard.la $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" install-libcacard,) endif -vscclient$(EXESUF): $(libcacard-y) $(oslib-obj-y) qemu-timer-common.o libcacard/vscclient.o +vscclient$(EXESUF): $(libcacard-y) $(oslib-obj-y) qemu-timer-common.o \ + libcacard/vscclient.o $(trace-obj-y) $(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) $(LIBS)," LINK $@") ###################################################################### -- 1.7.10