mirror of
https://github.com/curl/curl.git
synced 2026-07-10 03:27:18 +03:00
configure: link -lcrypt32 instead of -lm for wolfSSL on Windows
Syncing it with CMake/FindWolfSSL. `-lm` is not needed on Windows. As of mingw-w64 14.0.0 it's offered as a dummy library; in such case it wasn't causing an actual issue. `-lcryp32` is necessary when linking wolfSSL statically. Ref: #22249 Closes #22251
This commit is contained in:
parent
84ecfb3ecc
commit
0fff69d514
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ if test "$OPT_WOLFSSL" != "no"; then
|
|||
|
||||
if test "$curl_cv_apple" = "yes"; then
|
||||
addlib="$addlib -framework Security -framework CoreFoundation"
|
||||
elif test "$curl_cv_native_windows" = "yes"; then
|
||||
addlib="$addlib -lcrypt32"
|
||||
else
|
||||
addlib="$addlib -lm"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue