diff options
Diffstat (limited to 'libmudflap/configure')
-rwxr-xr-x | libmudflap/configure | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libmudflap/configure b/libmudflap/configure index f1c74a1..1a76202 100755 --- a/libmudflap/configure +++ b/libmudflap/configure @@ -6393,7 +6393,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" @@ -10607,7 +10614,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10610 "configure" +#line 10617 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10713,7 +10720,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10716 "configure" +#line 10723 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |