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

28 lines
961 B
Plaintext

--- gas/configure.in.orig Wed Oct 30 12:07:32 2002
+++ gas/configure.in Thu Jun 5 19:13:17 2003
@@ -260,7 +260,7 @@ changequote([,])dnl
;;
esac
;;
- i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
+ i386-*-openbsd*) fmt=elf em=nbsd;;
i386-*-linux*aout* | i386-*-linux*oldld) fmt=aout em=linux ;;
i386-*-linux*coff*) fmt=coff em=linux ;;
i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
@@ -460,7 +460,14 @@ changequote([,])dnl
;;
sparc-*-openbsd*) em=nbsd
case ${cpu} in
- sparc) fmt=aout ;;
+ sparc)
+ case ${os} in
+ openbsd[[0-2]].* | openbsd3.[[0-1]])
+ fmt=aout ;;
+ *)
+ fmt=elf ;;
+ esac
+ ;;
sparc64) fmt=elf ;;
esac
;;