The preferred DLL name for OpenSSL appears to have pivoted to be
"libssl-3-<platform>.dll" at some point, and likewise for libcrypto.
We need to look for them with the new name; otherwise, we end up
needing two separate copies of libcrypto with slightly different names
to avoid giving ourselves DLL hell.
! Copyright (C) 2007 Elie CHAFTARI, 2009 Maxim Savchenko
! See https://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.destructors alien.libraries
-alien.syntax classes.struct combinators system ;
+alien.syntax classes.struct combinators kernel sequences
+system ;
IN: openssl.libcrypto
<< "libcrypto" {
- { [ os windows? ] [ "libcrypto-37.dll" ] }
+ { [ os windows? ] [
+ cpu x86.64 = "x64" "x86" ?
+ "libcrypto-3-" ".dll" surround
+ ] }
{ [ os macosx? ] [ "libcrypto.35.dylib" ] }
{ [ os unix? ] [ "libcrypto.so" ] }
} cond cdecl add-library >>
! See https://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.destructors alien.libraries
alien.libraries.finder alien.parser alien.syntax classes.struct
-combinators kernel literals namespaces openssl.libcrypto system
-words ;
+combinators kernel literals namespaces openssl.libcrypto
+sequences system words ;
IN: openssl.libssl
<< "libssl" {
- { [ os windows? ] [ "libssl-38.dll" ] }
+ { [ os windows? ] [
+ cpu x86.64 = "x64" "x86" ?
+ "libssl-3-" ".dll" surround
+ ] }
{ [ os macosx? ] [ "libssl.35.dylib" ] }
{ [ os unix? ] [ "libssl.so" ] }
} cond cdecl add-library >>