From mboxrd@z Thu Jan 1 00:00:00 1970 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) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 8 May 2014 15:36:29 +0200 Message-Id: <1399556198-17776-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1399556198-17776-1-git-send-email-pbonzini@redhat.com> References: <1399556198-17776-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 01/10] build: Fix per-object variables for Makefile.target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Fam Zheng , mjt@tls.msk.ru 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 \ -- 1.8.3.1