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

Run pkg-config on macOS. #112

Merged
merged 1 commit into from
Apr 23, 2023
Merged

Run pkg-config on macOS. #112

merged 1 commit into from
Apr 23, 2023

Conversation

carlocab
Copy link
Contributor

Calling pkg-config zlib does not print -L /usr/lib for any zlib
package that I'm aware of on macOS (not even the one provided by Apple).

Moreover, the comment about a -L /usr/lib flag wreaking havoc on
attempting to link with OpenSSL in /usr/local/lib should no longer be
true. Presumbly, this was the case when Apple shipped its own
libcrypto and libssl in /usr/lib, but those days are long gone.

Calling `pkg-config zlib` does not print `-L /usr/lib` for any zlib
package that I'm aware of on macOS (not even the one provided by Apple).

Moreover, the comment about a `-L /usr/lib` flag wreaking havoc on
attempting to link with OpenSSL in `/usr/local/lib` should no longer be
true. Presumbly, this was the case when Apple shipped its own
`libcrypto` and `libssl` in `/usr/lib`, but those days are long gone.
@JohnTitor
Copy link
Member

Is that true for tvOS and/or iOS? the apple target contains them along with macOS and I'm concerned that they might be affected.

@carlocab
Copy link
Contributor Author

It should be, yes. I'm not sure Apple ever even shipped a libssl or libcrypto on iOS.

@JohnTitor
Copy link
Member

Thank you for clarifying! Let's ship this then, this was introduced in 043a4cd, but I think it's the old macOS's issue and I'm going to revert if that issue still exists on any of the supported macOS.

@JohnTitor JohnTitor merged commit 9908862 into rust-lang:main Apr 23, 2023
@carlocab
Copy link
Contributor Author

Thanks!

@carlocab carlocab deleted the pkg-config-macos branch April 23, 2023 04:32
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

Successfully merging this pull request may close these issues.

2 participants