[OSX] fix brew openssl detection#7560
Conversation
|
The workaround I've used is: |
|
The force linking is also a good idea, though, I think if we detect brews OpenSSL pkgconf, we should also allow to detect the headers in brews OpenSSL path. |
|
I think this is how you would do that properly. |
|
@jameshilliard I think this PR would do it exactly as recommended in you link. |
|
Doesn't it need $(brew --prefix) in the include path for keg only openssl? |
|
@theuni can you take a look here? |
|
@jonasschnelli hmm, appending PKG_CONFIG_PATH should be enough to pick up on the openssl headers (that's what it's there for). In the header check, we first set So your change shouldn't be necessary, seems to me something else is broken. Could you please paste the relevant failure from config.log? |
|
Cannot reproduce the issue anymore. It was probably a local-only thing. |
ping @theuni (not sure if I did this correct, it seems like extending
PKG_CONFIG_PATHdoes not work for a later header check withAC_CHECK_HEADER).OSX slowly depractates openssl. Since 10.11.3, not event Xcode installs the openssl headers. This PR will allow using homebrews openssl headers.