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
In a system with pkg-config working, if you give this:
OPENSSL_STATIC=1 cargo build
then OPENSSL_STATIC is ignored. The reason is that build.rs calls try_pkg_config before it even considers OPENSSL_STATIC, and if try_pkg_config succeeds it exits build.rs early.
The workaround is to set both OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR manually so that try_pkg_config is never invoked. The documentation does not state this as a requirement though.
In a system with pkg-config working, if you give this:
OPENSSL_STATIC=1 cargo build
then OPENSSL_STATIC is ignored. The reason is that
build.rs
callstry_pkg_config
before it even considers OPENSSL_STATIC, and iftry_pkg_config
succeeds it exits build.rs early.The workaround is to set both OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR manually so that
try_pkg_config
is never invoked. The documentation does not state this as a requirement though.See also: how-do-i-statically-link-the-openssl-sys-crate-into-a-shared-library
The text was updated successfully, but these errors were encountered: