summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/gas/configure.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/gas/configure.in b/gnu/usr.bin/binutils/gas/configure.in
index e3b0c734756..fd8a0189bd1 100644
--- a/gnu/usr.bin/binutils/gas/configure.in
+++ b/gnu/usr.bin/binutils/gas/configure.in
@@ -159,6 +159,7 @@ changequote([,])dnl
arm-*-linux*aout*) fmt=aout em=linux ;;
arm*-*-linux-gnu*) fmt=elf em=linux ;;
arm-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
+ arm-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
arm-*-oabi | thumb-*-oabi) fmt=elf ;;
arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
arm-*-wince) fmt=coff em=wince-pe bfd_gas=yes;;
@@ -359,8 +360,12 @@ changequote([,])dnl
sparc64) fmt=elf ;;
esac
;;
- sparc-*-openbsd*) fmt=aout em=nbsd ;;
-
+ sparc-*-openbsd*) em=nbsd
+ case ${cpu} in
+ sparc) fmt=aout ;;
+ sparc64) fmt=elf ;;
+ esac
+ ;;
strongarm-*-coff) fmt=coff ;;
strongarm-*-elf) fmt=elf ;;