$OpenBSD: patch-configure,v 1.4 2014/10/20 03:41:25 bcallah Exp $
--- configure.orig	Sun Oct 19 13:21:48 2014
+++ configure	Sun Oct 19 23:28:59 2014
@@ -4332,10 +4332,10 @@ $as_echo "yes" >&6; }
 		*BSD*)
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-			LIBMXML="libmxml.so.1.5"
+			LIBMXML="libmxml.so.${LIBmxml_VERSION}"
 			DSO="\$(CC)"
-			DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
-			LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
+			DSOFLAGS="$DSOFLAGS -shared"
+			LDFLAGS="$LDFLAGS"
                         ;;
 
 		Darwin*)
@@ -4369,7 +4369,7 @@ if test -n "$GCC"; then
 	CFLAGS="-Wall $CFLAGS"
 
 	if test "x$OPTIM" = x; then
-		OPTIM="-Os -g"
+		: # OPTIM="-Os -g"
 	fi
 
 	if test "x$use_ansi" = xyes; then
