]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Support x32.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 13 Dec 2011 03:24:14 +0000 (21:24 -0600)
committerPeter O'Gorman <peter@pogma.com>
Tue, 13 Dec 2011 03:24:14 +0000 (21:24 -0600)
* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.

m4/libtool.m4

index 9c2574fd4fe3dce46eec0bc4662252eff797e3b5..36398518ca4362ae3ea52a541e4bd0590c9ee282 100644 (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"