moar mac compatibility

This commit is contained in:
Adam D. Ruppe 2021-01-27 22:28:18 -05:00
parent 566eea4fb2
commit 9ca8676882
1 changed files with 6 additions and 1 deletions

View File

@ -2089,7 +2089,12 @@ version(use_openssl) {
shared static this() {
version(OSX) {
ossllib_handle = dlopen("libssl.dylib", RTLD_NOW);
// newest box
ossllib_handle = dlopen("libssl.1.1.dylib", RTLD_NOW);
// other boxes
if(ossllib_handle is null)
ossllib_handle = dlopen("libssl.dylib", RTLD_NOW);
// old ones like my laptop test
if(ossllib_handle is null)
ossllib_handle = dlopen("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib", RTLD_NOW);