Dynamically loading libssl doesn't work on OpenBSD for some reason; link VM with it
parent
f1c8f3c559
commit
5b321c2308
|
@ -10,11 +10,12 @@ USING: alien alien.syntax combinators kernel system ;
|
||||||
IN: openssl.libcrypto
|
IN: openssl.libcrypto
|
||||||
|
|
||||||
<<
|
<<
|
||||||
"libcrypto" {
|
{
|
||||||
{ [ os winnt? ] [ "libeay32.dll" "cdecl" ] }
|
{ [ os openbsd? ] [ ] } ! VM is linked with it
|
||||||
{ [ os macosx? ] [ "libcrypto.dylib" "cdecl" ] }
|
{ [ os winnt? ] [ "libcrypto" "libeay32.dll" "cdecl" add-library ] }
|
||||||
{ [ os unix? ] [ "libcrypto.so" "cdecl" ] }
|
{ [ os macosx? ] [ "libcrypto" "libcrypto.dylib" "cdecl" add-library ] }
|
||||||
} cond add-library
|
{ [ os unix? ] [ "libcrypto" "libcrypto.so" "cdecl" add-library ] }
|
||||||
|
} cond
|
||||||
>>
|
>>
|
||||||
|
|
||||||
C-STRUCT: bio-method
|
C-STRUCT: bio-method
|
||||||
|
|
|
@ -10,11 +10,12 @@ assocs parser sequences words quotations ;
|
||||||
|
|
||||||
IN: openssl.libssl
|
IN: openssl.libssl
|
||||||
|
|
||||||
<< "libssl" {
|
<< {
|
||||||
{ [ os winnt? ] [ "ssleay32.dll" "cdecl" ] }
|
{ [ os openbsd? ] [ ] } ! VM is linked with it
|
||||||
{ [ os macosx? ] [ "libssl.dylib" "cdecl" ] }
|
{ [ os winnt? ] [ "libssl" "ssleay32.dll" "cdecl" add-library ] }
|
||||||
{ [ os unix? ] [ "libssl.so" "cdecl" ] }
|
{ [ os macosx? ] [ "libssl" "libssl.dylib" "cdecl" add-library ] }
|
||||||
} cond add-library >>
|
{ [ os unix? ] [ "libssl" "libssl.so" "cdecl" add-library ] }
|
||||||
|
} cond >>
|
||||||
|
|
||||||
: X509_FILETYPE_PEM 1 ; inline
|
: X509_FILETYPE_PEM 1 ; inline
|
||||||
: X509_FILETYPE_ASN1 2 ; inline
|
: X509_FILETYPE_ASN1 2 ; inline
|
||||||
|
|
|
@ -2,4 +2,4 @@ include vm/Config.unix
|
||||||
PLAF_DLL_OBJS += vm/os-genunix.o vm/os-openbsd.o
|
PLAF_DLL_OBJS += vm/os-genunix.o vm/os-openbsd.o
|
||||||
CC = egcc
|
CC = egcc
|
||||||
CFLAGS += -export-dynamic
|
CFLAGS += -export-dynamic
|
||||||
LIBS = -L/usr/local/lib/ -lm $(X11_UI_LIBS) -lz
|
LIBS = -L/usr/local/lib/ -lm $(X11_UI_LIBS) -lz -lssl -lcrypto
|
||||||
|
|
Loading…
Reference in New Issue