OpenSSL 1.0.0 compiled for 64 bit Windows requires linking with -lcrypt32.
[tinc] / m4 / openssl.m4
index a5cd039..f091300 100644 (file)
@@ -29,7 +29,7 @@ AC_DEFUN([tinc_OPENSSL],
 case $host_os in
   *mingw*)
     AC_CHECK_LIB(crypto, SHA1_version,
-      [LIBS="$LIBS -lcrypto -lgdi32"],
+      [LIBS="$LIBS -lcrypto -lgdi32 -lcrypt32"],
       [AC_MSG_ERROR([OpenSSL libraries not found.])]
     )
   ;;