Add -lbcrypt to Windows builds for CNG in getentropy
This commit is contained in:
parent
9abd36e3af
commit
df3d4bb57a
@ -119,7 +119,7 @@ if(WIN32)
|
|||||||
add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS)
|
add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||||
add_definitions(-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600)
|
add_definitions(-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600)
|
||||||
add_definitions(-DCPPFLAGS -DNO_SYSLOG -DNO_CRYPT)
|
add_definitions(-DCPPFLAGS -DNO_SYSLOG -DNO_CRYPT)
|
||||||
set(PLATFORM_LIBS ${PLATFORM_LIBS} ws2_32)
|
set(PLATFORM_LIBS ${PLATFORM_LIBS} ws2_32 bcrypt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
@ -37,9 +37,9 @@ At the time of this writing, LibreSSL is known to build and work on:
|
|||||||
* AIX (5.3 and later)
|
* AIX (5.3 and later)
|
||||||
|
|
||||||
LibreSSL also supports the following Windows environments:
|
LibreSSL also supports the following Windows environments:
|
||||||
* Microsoft Windows (Vista or higher, x86 and x64)
|
* Microsoft Windows (Windows 7 / Windows Server 2008r2 or later, x86 and x64)
|
||||||
* Wine (32-bit and 64-bit)
|
* Wine (32-bit and 64-bit)
|
||||||
* Builds with Mingw-w64, Cygwin, and Visual Studio
|
* Mingw-w64, Cygwin, and Visual Studio
|
||||||
|
|
||||||
Official release tarballs are available at your friendly neighborhood
|
Official release tarballs are available at your friendly neighborhood
|
||||||
OpenBSD mirror in directory
|
OpenBSD mirror in directory
|
||||||
|
@ -112,7 +112,7 @@ char buf[1]; getentropy(buf, 1);
|
|||||||
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS"
|
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS"
|
||||||
CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600"
|
CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600"
|
||||||
CPPFLAGS="$CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS"
|
||||||
AC_SUBST([PLATFORM_LDADD], ['-lws2_32'])
|
AC_SUBST([PLATFORM_LDADD], ['-lws2_32 -lbcrypt'])
|
||||||
;;
|
;;
|
||||||
*solaris*)
|
*solaris*)
|
||||||
HOST_OS=solaris
|
HOST_OS=solaris
|
||||||
|
Loading…
x
Reference in New Issue
Block a user