Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable static linking without specifying link dirs #825

Closed
drahnr opened this issue Jan 8, 2018 · 2 comments
Closed

Enable static linking without specifying link dirs #825

drahnr opened this issue Jan 8, 2018 · 2 comments

Comments

@drahnr
Copy link

drahnr commented Jan 8, 2018

Use .statik(std::env::var("OPENSSL_STATIC").is_ok()) in fn try_pkg_config() which would remove the need to specify the _INCLUDE_DIR and _LIB_DIR for the case like fedora where the statically linked binaries are provided in the standard locations beside the dynamically linked.

@sfackler
Copy link
Owner

sfackler commented Jan 8, 2018

pkg-config-rs already looks at that environment variable. You're probably running into rust-lang/pkg-config-rs#37

@drahnr
Copy link
Author

drahnr commented Jan 8, 2018

You are right, this ticket is misplaced.

Just for reference, there is this rust lang forum topic: https://users.rust-lang.org/t/how-to-link-openssl-statically/14912/2 and ticket rust-lang/pkg-config-rs#54 for pkg-config-rs

@drahnr drahnr closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants