]> 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)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:03:01 +0000 (21:03 +0700)
* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.

m4/libtool.m4

index 417ebe463ea53558d81bbdd6903fd5b1f2964810..f870a163be36595bd8f02f01121789a703b2b79e 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"