summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2013-01-02 08:54:05 -0500
committerAnthony Green <green@moxielogic.com>2013-01-02 08:54:05 -0500
commitebbe77966855395a2a47ed2c09a38f93eb0481cf (patch)
tree11932346c762bcf3bb08a9976efba03141d98b40 /m4
parent4394096da0aca0dd422b479a043c18b4f05c5770 (diff)
downloadlibffi-ebbe77966855395a2a47ed2c09a38f93eb0481cf.tar.gz
missed x32 libtool patch.
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 56666f0..540e0b4 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -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"