accomodate OpenBSD linking of libssl

Merge to v5.3.1
This commit is contained in:
Matthew Flatt 2012-10-18 11:58:59 -06:00
parent b912d0f059
commit be538b4f69

View File

@ -19,4 +19,9 @@
(with-handlers ([exn:fail? (lambda (x)
(set! libcrypto-load-fail-reason (exn-message x))
#f)])
(ffi-lib libcrypto-so '("" "1.0.0" "1.0" "0.9.8b" "0.9.8" "0.9.7"))))
(ffi-lib libcrypto-so '("" "1.0.0" "1.0" "0.9.8b" "0.9.8" "0.9.7")
;; On OpenBSD, libssl is linked in a way that requires libcrypto
;; to be opened as global:
#:global? (member (path->bytes (system-library-subpath #f))
'(#"i386-openbsd"
#"x86_64-openbsd")))))