diff options
author | Anthony Green <green@moxielogic.com> | 2013-01-02 08:54:05 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2013-01-02 08:54:05 -0500 |
commit | ebbe77966855395a2a47ed2c09a38f93eb0481cf (patch) | |
tree | 11932346c762bcf3bb08a9976efba03141d98b40 /m4 | |
parent | 4394096da0aca0dd422b479a043c18b4f05c5770 (diff) | |
download | libffi-ebbe77966855395a2a47ed2c09a38f93eb0481cf.tar.gz |
missed x32 libtool patch.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libtool.m4 | 9 |
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" |