$OpenBSD: patch-configure,v 1.4 2006/01/04 20:26:59 alek Exp $
--- configure.orig	2003-08-20 00:43:44.000000000 -0400
+++ configure	2003-08-20 00:47:19.000000000 -0400
@@ -4213,16 +4213,16 @@ case $system in
         DL_LIBS="-ldl"
         SHLD_FLAGS="-Wl,-Bexport"
         ;;
-    NetBSD-*|FreeBSD-*)
+    NetBSD-*|FreeBSD-*|OpenBSD-*)
         # Not available on all versions:  check for include file.
         if test -e /usr/include/dlfcn.h; then
             SHLIB_CFLAGS="-fpic"
-            SHLIB_LD="ld -Bshareable"
-            SHLIB_SUFFIX=".so"
+            SHLIB_LD="cc -shared"
+            SHLIB_SUFFIX=".so.${LIBotcl_VERSION}"
             DL_LIBS=""
             SHLD_FLAGS=""
         else
-            echo "NetBSD/FreeBSD with no support for dynamic loading"
+            echo "NetBSD/FreeBSD/OpenBSD with no support for dynamic loading"
             echo " or shared libraries on this system."
             SHLIB_CFLAGS=""
             SHLIB_LD=":  Skipping shared libaries"
