$OpenBSD: patch-admin_ltconfig,v 1.1 2002/09/14 02:14:36 naddy Exp $
--- admin/ltconfig.orig	Fri Dec  7 11:06:18 2001
+++ admin/ltconfig	Sat Sep 14 03:42:47 2002
@@ -625,7 +625,12 @@ old_postuninstall_cmds=
 
 if test -n "$RANLIB"; then
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+  case $host_os in 
+  openbsd*)
+      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds";;
+  *)
+      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds";;
+  esac
 fi
 
 # Source the script associated with the $tagname tag configuration.
@@ -1246,15 +1251,15 @@ newsos6)
 
 openbsd*)
   version_type=sunos
-  if test "$with_gnu_ld" = yes; then
-    need_lib_prefix=no
-    need_version=no
-  fi
+  need_lib_prefix=yes
+  need_version=yes
   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   # OpenBSD 2.7 the overriding is needed for fast-install
   shlibpath_overrides_runpath=yes
+  deplibs_check_method=pass_all
+  sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib /usr/local/lib/qt2'
   ;;
 
 os2*)
