fix foreign library references for cross-build
This commit is contained in:
parent
30005d41ac
commit
8e162082e1
|
@ -1,15 +1,17 @@
|
|||
#lang racket/base
|
||||
(require (for-syntax racket/base)
|
||||
(require (for-syntax racket/base
|
||||
setup/cross-system)
|
||||
racket/runtime-path
|
||||
ffi/unsafe
|
||||
ffi/unsafe/define)
|
||||
ffi/unsafe/define
|
||||
setup/cross-system)
|
||||
(require "ffi-constants.rkt")
|
||||
(provide (all-from-out "ffi-constants.rkt")
|
||||
(protect-out (all-defined-out)))
|
||||
|
||||
;; raco distribute should include Racket's sqlite3 if present
|
||||
(define-runtime-path sqlite-so
|
||||
(case (system-type)
|
||||
(case (cross-system-type)
|
||||
[(windows) '(so "sqlite3")]
|
||||
[else '(so "libsqlite3" ("0" #f))]))
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#lang racket/base
|
||||
(require ffi/unsafe
|
||||
racket/runtime-path
|
||||
(for-syntax racket/base))
|
||||
setup/cross-system
|
||||
(for-syntax racket/base
|
||||
setup/cross-system))
|
||||
|
||||
(provide libcrypto
|
||||
libcrypto-load-fail-reason
|
||||
|
@ -42,7 +44,7 @@
|
|||
;; We need to declare because they might be distributed with Racket,
|
||||
;; in which case they should get bundled with stand-alone executables:
|
||||
(define-runtime-path libcrypto-so
|
||||
(case (system-type)
|
||||
(case (cross-system-type)
|
||||
[(windows) '(so "libeay32")]
|
||||
[(macosx)
|
||||
;; Version "1.0.0" is bundled with Racket
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#lang racket/base
|
||||
(require ffi/unsafe
|
||||
racket/runtime-path
|
||||
(for-syntax racket/base)
|
||||
setup/cross-system
|
||||
(for-syntax racket/base
|
||||
setup/cross-system)
|
||||
"libcrypto.rkt")
|
||||
|
||||
(provide libssl
|
||||
|
@ -12,7 +14,7 @@
|
|||
;; We need to declare because they might be distributed with PLT Scheme
|
||||
;; in which case they should get bundled with stand-alone executables:
|
||||
(define-runtime-path libssl-so
|
||||
(case (system-type)
|
||||
(case (cross-system-type)
|
||||
[(windows) '(so "ssleay32")]
|
||||
[(macosx)
|
||||
;; Version "1.0.0" is bundled with Racket
|
||||
|
|
Loading…
Reference in New Issue
Block a user