You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that on MSVC windows the library are always built as dlls, unless the crt-static feature is enabled. This piece of code is omitting the no-shared configuration argument to the Configure script, resulting in dll being built and binaries linked against openssl-sys still requiring dll to be installed or available in PATH.
Forcing that no-static argument, allows vendored openssl to link correctly.
I don't think that the above linked configuration is correct: from what I read, crt-static is something related to the base windows libraries and should not affect the linking of a library such as openssl; besides, openssl-sys already takes care of telling cargo to link correctly the windows runtime by properly adding:
Seems reasonable to me to always statically link OpenSSL, I'm not entirely sure why configuration was left in to build openssl dylibs, that's not really ever desired when using this crate I think.
Moving here discussion from sfackler/rust-openssl#1398
Seems that on MSVC windows the library are always built as dlls, unless the
crt-static
feature is enabled. This piece of code is omitting theno-shared
configuration argument to theConfigure
script, resulting in dll being built and binaries linked againstopenssl-sys
still requiring dll to be installed or available in PATH.Forcing that
no-static
argument, allows vendored openssl to link correctly.I don't think that the above linked configuration is correct: from what I read,
crt-static
is something related to the base windows libraries and should not affect the linking of a library such as openssl; besides, openssl-sys already takes care of telling cargo to link correctly the windows runtime by properly adding:The text was updated successfully, but these errors were encountered: