missed x32 libtool patch.
authorAnthony Green <green@moxielogic.com>
Wed, 2 Jan 2013 13:54:05 +0000 (08:54 -0500)
committerAnthony Green <green@moxielogic.com>
Wed, 2 Jan 2013 13:54:05 +0000 (08:54 -0500)
m4/libtool.m4

index 56666f0eceac29ace0fff6cfefa246a4ab93174c..540e0b437e087d228e33db703bc16902aa7f05c2 100644 (file)
@@ -1324,7 +1324,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"