From be538b4f690c229a7a1b9612028db0eecd1de7ac Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 18 Oct 2012 11:58:59 -0600 Subject: [PATCH] accomodate OpenBSD linking of libssl Merge to v5.3.1 --- collects/openssl/libcrypto.rkt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/collects/openssl/libcrypto.rkt b/collects/openssl/libcrypto.rkt index 438abe8eca..32e09b72ef 100644 --- a/collects/openssl/libcrypto.rkt +++ b/collects/openssl/libcrypto.rkt @@ -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")))))