diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-10-29 13:27:55 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-02 11:06:24 +0200 |
commit | 9cd09e77060752fed4ae8bebcb5c2a82493695bb (patch) | |
tree | 744799085285814b1f36f4db76e176569693058e /configure | |
parent | 384c3f82f7dfb9d7893129ec2ca22938412c687f (diff) |
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ kerneldir=/lib/modules/$(uname -r)/build cc=gcc ld=ld objcopy=objcopy +ar=ar want_module=1 qemu_cflags= qemu_ldflags= @@ -141,6 +142,7 @@ CROSS_COMPILE=$cross_prefix CC=$cross_prefix$cc LD=$cross_prefix$ld OBJCOPY=$cross_prefix$objcopy +AR=$cross_prefix$ar EOF cat <<EOF > kernel/config.kbuild |