OpenSSL 1.0.0 compiled for 64 bit Windows requires linking with -lcrypt32.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 1 May 2010 13:39:03 +0000 (15:39 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 1 May 2010 13:39:03 +0000 (15:39 +0200)
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.])]
     )
   ;;