diff -Nur gcc-4.4.2.orig/gcc/configure gcc-4.4.2/gcc/configure
--- gcc-4.4.2.orig/gcc/configure	Tue Mar 24 18:45:39 2009
+++ gcc-4.4.2/gcc/configure	Sat Dec 19 21:07:07 2009
@@ -19381,7 +19381,7 @@
   dynamic_linker='ldqnx.so'
   ;;
 
-openbsd*)
+mirbsd*|openbsd*)
   version_type=sunos
   sys_lib_dlsearch_path_spec="/usr/lib"
   need_lib_prefix=no
