openbsd-ports/devel/binutils/stable/patches/patch-gas_configure_in

38 lines
1.5 KiB
Plaintext

$OpenBSD: patch-gas_configure_in,v 1.2 2002/02/20 10:46:29 fgsch Exp $
--- gas/configure.in.orig Mon Jun 11 07:04:44 2001
+++ gas/configure.in Wed Feb 20 06:42:53 2002
@@ -173,7 +173,7 @@ changequote([,])dnl
alpha*-*-*vms*) fmt=evax ;;
alpha*-*-netware*) fmt=ecoff ;;
- alpha*-*-openbsd*) fmt=ecoff ;;
+ alpha*-*-openbsd*) fmt=elf em=obsd ;;
alpha*-*-osf*) fmt=ecoff ;;
alpha*-*-linuxecoff*) fmt=ecoff ;;
alpha*-*-linux-gnu*) fmt=elf em=linux ;;
@@ -215,6 +215,7 @@ changequote([,])dnl
esac ;;
hppa-*-*elf*) fmt=elf em=hppa ;;
hppa-*-lites*) fmt=elf em=hppa ;;
+ hppa-*-openbsd*) fmt=elf em=hppa ;;
hppa-*-osf*) fmt=som em=hppa ;;
hppa-*-rtems*) fmt=elf em=hppa ;;
hppa-*-hpux11*) case ${cpu} in
@@ -420,7 +421,15 @@ changequote([,])dnl
sparc64) fmt=elf ;;
esac
;;
- sparc-*-openbsd*) fmt=aout em=nbsd ;;
+ sparc-*-openbsd*) em=nbsd bfd_gas=yes
+ case ${cpu} in
+ sparc) case ${os} in
+ *elf*) fmt=elf ;;
+ *) fmt=aout ;;
+ esac ;;
+ sparc64) fmt=elf ;;
+ esac
+ ;;
strongarm-*-coff) fmt=coff ;;
strongarm-*-elf) fmt=elf ;;