]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commit
configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Oct 2013 20:03:06 +0000 (21:03 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 4 Dec 2013 01:46:18 +0000 (19:46 -0600)
commitc554ddb901f7716e3288a555a0b4fd0cd1f028ab
treeb842605fc5fac687b1942c367d808aa7cef32662
parentc1fecf20854020dfc24a9e47adc7a49b4cd5fbce
configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0

Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
explicitly specifying everything and not relying on any default
variables or rules. However we were accidentally relying on the
default ARFLAGS ("rv"). This went unnoticed because of a bug in
GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
only affected submakes, not the currently running instance.
Explicitly set ARFLAGS in config-host.mak, in the same way we
handle CFLAGS and LDFLAGS; this will allow us to work with
Make 4.0.

Thanks to Paul Smith for analyzing this bug for us.

Cc: qemu-stable@nongnu.org
Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 45d285abd7028ac72418c1a22f9298bb898fbfb8)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure