kvm: user: define and use AR in configure scripts and Makefiles
commit4936d9f2d50470a7cc9910d94888d8cd62283c58
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 29 Oct 2008 18:27:55 +0000 (29 13:27 -0500)
committerAvi Kivity <avi@redhat.com>
Sun, 2 Nov 2008 09:06:24 +0000 (2 11:06 +0200)
tree9ca38c1839230bae4e605b2ffbee4c55a19bc3d9
parentfe27c3169b5761f6c80d32e6397c103e4f124a83
kvm: user: define and use AR in configure scripts and Makefiles

libkvm/Makefile uses $(AR), but it's not defined by the top-level configure.
The problem is that when cross-compiling for a 64-bit target on a 32-bit host,
32-bit ar will be used and the 64-bit code will fail to link.

user/Makefile has the same problem, and even uses plain "ar".

Add AR to configure and user/configure, and use it in the Makefiles.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/configure
kvm/user/Makefile
kvm/user/configure