build: Fix per-object variables for Makefile.target
commit5a8b231e7ed39b25e141e8fbbde48203d2361cc2
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Apr 2014 14:12:50 +0000 (29 16:12 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 May 2014 13:09:04 +0000 (8 15:09 +0200)
treebf492167fb6fd38392beaea061a518cc2cf98c9a
parent6b342cc9c872e82620fdd32730cd92affa8a19b3
build: Fix per-object variables for Makefile.target

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 <famz@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rules.mak