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

Attempt to find the correct path for openssl. #1166

Closed
wants to merge 1 commit into from

Conversation

iddm
Copy link
Contributor

@iddm iddm commented Feb 22, 2023

The installation path for openssl may vary depending on the way used for its installation and the macOS version.

This commit attempts to find the correct path for openssl to use.

Makefile Outdated Show resolved Hide resolved
The installation path for openssl may vary depending on the way
used for its installation and the macOS version.

This commit attempts to find the correct path for openssl to use.
@iddm iddm force-pushed the fix-macos-building branch from 8067838 to 377106f Compare February 22, 2023 18:06
@iddm
Copy link
Contributor Author

iddm commented Feb 23, 2023

It seems that the project this was needed for doesn't need these changes anymore as it simply overrides the variable OPENSSL_PREFIX, so I am closing this. However, as a potential user, it would have been nice if the library didn't require any intervention in order to build and could automatically detect the paths.

@iddm iddm closed this Feb 23, 2023
@chayim chayim reopened this Feb 23, 2023
@chayim
Copy link
Contributor

chayim commented Feb 23, 2023

IMHO this is still a good idea. @michael-grunder due to HOMEBREW I think it should still be considered.

@michael-grunder
Copy link
Collaborator

@chayim Sure, I'm happy to tweak the PR a little bit and get it merged. Ideally, we'd want someone to confirm the logic works on these older macOS systems since I only have a newer one

@michael-grunder
Copy link
Collaborator

I reworked the tests slightly in 345d0b5 which appear seem to work on old macOS systems (e.g. CI) and on my newer M1. It's pretty much the same logic, only I am limiting the mac based searching to mac systems, and also searching first for the new path, and falling back to the old one.

@chayim Let me know what you think.

@michael-grunder
Copy link
Collaborator

Closing in favor of #1169. I incorporated @vityafx's commits and reworked them a touch.

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.

3 participants