$OpenBSD: patch-configure,v 1.12 2015/04/14 06:48:02 jasper Exp $
--- configure.orig	Wed Apr  8 11:30:42 2015
+++ configure	Mon Apr 13 15:33:48 2015
@@ -14128,7 +14128,7 @@ fi
 
 
 if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
-    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
+    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto"
     OPENSSL_CFLAGS="-I$openssl_prefix/include"
 else
     # Extract the first word of "pkg-config", so it can be a program name with args.
@@ -14181,7 +14181,7 @@ fi
         else
             openssl_prefix="$prefix"
         fi
-        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
+        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto"
         OPENSSL_CFLAGS="-I$openssl_prefix/include"
     fi
 fi
