alexcrichton / openssl-src-rs

Source code and logic to build OpenSSL from source
Apache License 2.0
69 stars 114 forks source link

fix: build should support lib64 dir for OpenSSL3.x #239

Closed richerfu closed 5 months ago

alexcrichton commented 5 months ago

Thanks! Could you expand a bit more on why this is necessary? For example why hasn't this caused any issues up to now? Is this a recent change upstream?

richerfu commented 5 months ago

For some architectures, OpenSSL version 3.x is installed under the lib64 directory. I've encountered some dependency query failures when I try to build the x86_64 architecture of openharmony.

This approach is also in sync with rust-openssl.

sfackler commented 5 months ago

The libdir is overridden to lib: https://github.com/alexcrichton/openssl-src-rs/blob/main/src/lib.rs#L191-L192

richerfu commented 5 months ago

You're right, if it ends up being overridden, this PR would be rendered pointless.