$OpenBSD: patch-libgcc_config_host,v 1.3 2012/09/28 18:45:42 pascal Exp $
--- libgcc/config.host.orig	Wed Sep  5 14:19:47 2012
+++ libgcc/config.host	Mon Sep 24 16:32:09 2012
@@ -474,6 +474,9 @@ hppa*-*-linux*)
 	fi
 	md_unwind_header=pa/linux-unwind.h
 	;;
+hppa-*-openbsd*)
+	tmake_file="$tmake_file pa/t-openbsd"
+	;;
 hppa[12]*-*-hpux10*)
 	tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
 	# Set the libgcc version number
@@ -540,7 +543,11 @@ x86_64-*-netbsd*)
 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
 	;;
 i[34567]86-*-openbsd*)
+	tmake_file="${tmake_file} i386/t-crtstuff"
 	;;
+x86_64-*-openbsd*)
+	tmake_file="${tmake_file} i386/t-crtstuff"
+	;;
 i[34567]86-*-linux*)
 	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
@@ -861,6 +868,9 @@ powerpc*-*-freebsd*)
 	;;
 powerpc-*-netbsd*)
 	tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
+	;;
+powerpc-*-openbsd*)
+	tmake_file="$tmake_file rs6000/t-crtstuff"
 	;;
 powerpc-*-eabispe*)
 	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic"
