summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/gas/configure7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gas/configure b/gnu/usr.bin/binutils/gas/configure
index 7ad68d81fcc..1b2484db4e2 100644
--- a/gnu/usr.bin/binutils/gas/configure
+++ b/gnu/usr.bin/binutils/gas/configure
@@ -843,7 +843,12 @@ for this_target in $target $canon_targets ; do
# don't change em like *-*-bsd does
mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;;
- mips-*-openbsd*) fmt=elf targ=mips-lit endian=little ;;
+ mips-*-openbsd*) fmt=elf
+ case "$endian" in
+ big) targ=mips-big ;;
+ *) targ=mips-lit ;;
+ esac
+ ;;
mips-dec-bsd*) fmt=aout targ=mips-lit ;;
mips-sony-bsd*) fmt=ecoff targ=mips-big ;;
mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;