From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WirxY-0006G8-Da for qemu-devel@nongnu.org; Fri, 09 May 2014 17:04:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WirxR-0005ar-5V for qemu-devel@nongnu.org; Fri, 09 May 2014 17:04:00 -0400 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:34078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WirxQ-0005ah-VM for qemu-devel@nongnu.org; Fri, 09 May 2014 17:03:53 -0400 Received: by mail-ee0-f51.google.com with SMTP id e51so3010532eek.38 for ; Fri, 09 May 2014 14:03:52 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 9 May 2014 23:03:35 +0200 Message-Id: <1399669424-29676-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1399669424-29676-1-git-send-email-pbonzini@redhat.com> References: <1399669424-29676-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 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