Support x32.

* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
This commit is contained in:
H.J. Lu 2011-12-12 21:24:14 -06:00 committed by Peter O'Gorman
parent 0009ef8988
commit 88992fe677

9
m4/libtool.m4 vendored
View File

@ -1321,7 +1321,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
LD="${LD-ld} -m elf_i386_fbsd"
;;
x86_64-*linux*)
LD="${LD-ld} -m elf_i386"
case `/usr/bin/file conftest.o` in
*x86-64*)
LD="${LD-ld} -m elf32_x86_64"
;;
*)
LD="${LD-ld} -m elf_i386"
;;
esac
;;
ppc64-*linux*|powerpc64-*linux*)
LD="${LD-ld} -m elf32ppclinux"