From patchwork Thu May 8 13:36:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 347054 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8E2F2140091 for ; Thu, 8 May 2014 23:38:02 +1000 (EST) Received: from localhost ([::1]:46934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOWO-0004ZW-F4 for incoming@patchwork.ozlabs.org; Thu, 08 May 2014 09:38:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOVO-0002qt-S4 for qemu-devel@nongnu.org; Thu, 08 May 2014 09:37:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiOVE-0006gy-KG for qemu-devel@nongnu.org; Thu, 08 May 2014 09:36:58 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:61627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOVE-0006gr-E3 for qemu-devel@nongnu.org; Thu, 08 May 2014 09:36:48 -0400 Received: by mail-we0-f179.google.com with SMTP id q59so2575332wes.10 for ; Thu, 08 May 2014 06:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ThJFDUjMb1kCKpeh1un/VcrHPjIoF/Y6ZFcErHqAdLQ=; b=CnVF4vsQ10dby+qc6hZTo1+Bq5UPA6XHBB4BBRWoxJ2owLgH5JO1KSj0d7cRZPyKKl gFqY1rG/fSidIlUOps18VNJZTE+gP/4aTIAdX7WLyqViT91bYpLuoO5r/DS8K5dhdtPj Xi7qMZxwu4Mj9T0AEBS+Sev+NzRc1FQM8X7jWy35f+/szs2viqllh3L7BZzujg5tpe7E 4W4GNerx0D2Q12zCydrQX+jRaaSJmlSCsd2pkp15pjrG7hlwg3xLqjui/BrGwTxxFzmc f2IaSuQmMge7PAvkZ0WvuOz0x01Kb+3K35yTCKLZyLWjrTj1rDwXjoESeFIBUIBpQ0OT b5ig== X-Received: by 10.194.62.210 with SMTP id a18mr3359441wjs.4.1399556207519; Thu, 08 May 2014 06:36:47 -0700 (PDT) Received: from playground.com (net-37-117-141-58.cust.vodafonedsl.it. [37.117.141.58]) by mx.google.com with ESMTPSA id ct2sm1353860wjb.33.2014.05.08.06.36.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 May 2014 06:36:46 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 8 May 2014 15:36:29 +0200 Message-Id: <1399556198-17776-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1399556198-17776-1-git-send-email-pbonzini@redhat.com> References: <1399556198-17776-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::233 Cc: Fam Zheng , mjt@tls.msk.ru Subject: [Qemu-devel] [PATCH 01/10] build: Fix per-object variables for Makefile.target 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 The compiling is done in a subdir, so the extraction of per-object libs and cflags are referencing objects with ../ prefixed. So prefix the per-object variables "foo.o-cflags" and "foo.o-libs" to "../foo.o-cflags" and "../foo.o-libs". Signed-off-by: Fam Zheng Reviewed-by: Michael Tokarev Signed-off-by: Paolo Bonzini --- rules.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/rules.mak b/rules.mak index 5c454d8..7038576 100644 --- a/rules.mak +++ b/rules.mak @@ -228,6 +228,7 @@ endef define unnest-vars $(eval obj := $1) $(eval nested-vars := $2) +$(foreach v,$(nested-vars),$(call fix-obj-vars,$v,$(if $(obj),$(obj)/))) $(eval old-nested-dirs := ) $(call unnest-vars-1) $(if $1,$(foreach v,$(nested-vars),$(eval \