From patchwork Wed Jun 13 20:45:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 164754 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E9A83B7028 for ; Thu, 14 Jun 2012 06:45:36 +1000 (EST) Received: from localhost ([::1]:33075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeuRa-0004AS-T3 for incoming@patchwork.ozlabs.org; Wed, 13 Jun 2012 16:45:34 -0400 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 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id 04C6872800C0; Wed, 13 Jun 2012 22:45:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at weilnetz.de Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gx0b-IrRl4so; Wed, 13 Jun 2012 22:45:20 +0200 (CEST) Received: by v220110690675601.yourvserver.net (Postfix, from userid 1000) id DEE4772800C1; Wed, 13 Jun 2012 22:45:20 +0200 (CEST) From: Stefan Weil To: Anthony Liguori Date: Wed, 13 Jun 2012 22:45:20 +0200 Message-Id: <1339620320-23405-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 78.47.199.172 Cc: Stefan Weil , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] Makefile: Fix linker failure for vscclient X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 $@") ######################################################################