Open molleafauss opened 3 years ago
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.
I can open a PR for this if you want.
That'd be great!
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: