diff options
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gas/configure.in b/gas/configure.in index 0448081..b73098e 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -246,8 +246,16 @@ changequote([,])dnl i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;; i386-*-bsd*) fmt=aout em=386bsd ;; i386-*-netbsd0.8) fmt=aout em=386bsd ;; - i386-*-netbsdelf*) fmt=elf em=nbsd bfd_gas=yes ;; - i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; + i386-*-netbsd*) em=nbsd bfd_gas=yes + case ${cpu} in + x86_64) fmt=elf ;; + *) case ${os} in + *elf*) fmt=elf ;; + *) fmt=aout ;; + esac + ;; + esac + ;; i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;; i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;; i386-*-linux*coff*) fmt=coff em=linux ;; |