diff options
Diffstat (limited to 'gcc-4.7/gcc/configure')
-rwxr-xr-x | gcc-4.7/gcc/configure | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc-4.7/gcc/configure b/gcc-4.7/gcc/configure index 4782c2036..f7a75ca25 100755 --- a/gcc-4.7/gcc/configure +++ b/gcc-4.7/gcc/configure @@ -13797,7 +13797,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" @@ -18011,7 +18018,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18013 "configure" +#line 18020 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18117,7 +18124,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18119 "configure" +#line 18126 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |