alexcrichton / openssl-src-rs

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

Suggestion to fetch openssldir from env variable #161

Closed h7x4 closed 11 months ago

h7x4 commented 2 years ago

I'm working on building a package that depends on openssl-sys using nix, which does not place openssl in /usr/local/ssl. Could this line check to see if $OPENSSL_DIR is set before it uses the above as default?

https://github.com/alexcrichton/openssl-src-rs/blob/048d5f5584643b02ed633ca0b2ac061188ad6f87/src/lib.rs#L151

Thank you