OpenSSL 1.0.0 compiled for 64 bit Windows requires linking with -lcrypt32.
[oweals/tinc.git] / m4 / openssl.m4
index a5cd0394dbafd3a5dccf3306c5fba75f834caf15..f09130012c4110cefff92ebd37338a3f0c97e36f 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.])]
     )
   ;;