diff options
author | Nick Clifton <nickc@redhat.com> | 2006-09-20 11:35:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-09-20 11:35:11 +0000 |
commit | 99ad839030c1177eb409a99320fa7e60226f0db3 (patch) | |
tree | 31841958e04c69ceb1aeafcf7cdef5e721d23829 /gas/configure | |
parent | a8bbe5b03e6b16a41a69e570061e34014d30431a (diff) | |
download | gdb-99ad839030c1177eb409a99320fa7e60226f0db3.zip gdb-99ad839030c1177eb409a99320fa7e60226f0db3.tar.gz gdb-99ad839030c1177eb409a99320fa7e60226f0db3.tar.bz2 |
Add x86_64-mingw64 target
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/gas/configure b/gas/configure index 166ae27..e31fa35 100755 --- a/gas/configure +++ b/gas/configure @@ -3921,7 +3921,7 @@ ia64-*-hpux*) rm -rf conftest* ;; -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) +x86_64-*linux*|x86_64-*mingw64*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -3932,7 +3932,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in - x86_64-*linux*) + x86_64-*linux*|x86_64-*mingw64*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) @@ -3948,7 +3948,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) ;; *64-bit*) case $host in - x86_64-*linux*) + x86_64-*linux*|x86_64-*mingw64*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) @@ -4895,6 +4895,19 @@ if test ${all_targets} = "yes"; then ;; esac ;; + x86_64) + case ${obj_format} in + aout) + emulations="$emulations i386coff i386elf" + ;; + coff) + emulations="$emulations i386aout i386elf" + ;; + elf) + emulations="$emulations i386aout i386coff" + ;; + esac + ;; esac fi @@ -4958,6 +4971,11 @@ cat >>confdefs.h <<\_ACEOF #define M88KCOFF 1 _ACEOF ;; + x86_64) +cat >>confdefs.h <<\_ACEOF +#define I386COFF 1 +_ACEOF + ;; esac ;; esac |