fix library install path issues
This commit is contained in:
parent
c14081de59
commit
1423b84da5
|
@ -9,3 +9,7 @@
|
||||||
|
|
||||||
(define pre-install-collection "private/install.rkt")
|
(define pre-install-collection "private/install.rkt")
|
||||||
(define compile-omit-files '("private/install.rkt"))
|
(define compile-omit-files '("private/install.rkt"))
|
||||||
|
|
||||||
|
;; go linux-only, for now
|
||||||
|
(define install-platform #rx"linux")
|
||||||
|
(define move-foreign-libs '("private/compiled/native/libtty_raw.so"))
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
(build-path ansi/private/
|
(build-path ansi/private/
|
||||||
"compiled"
|
"compiled"
|
||||||
"native"
|
"native"
|
||||||
(system-library-subpath #f)
|
|
||||||
(append-extension-suffix "libtty_raw")))
|
(append-extension-suffix "libtty_raw")))
|
||||||
(when (file-exists? libtty_raw.so)
|
(when (file-exists? libtty_raw.so)
|
||||||
(delete-file libtty_raw.so))
|
(delete-file libtty_raw.so))
|
||||||
|
|
|
@ -7,18 +7,8 @@
|
||||||
(provide (protect-out tty-raw!
|
(provide (protect-out tty-raw!
|
||||||
tty-restore!))
|
tty-restore!))
|
||||||
|
|
||||||
(define (local-lib-dirs)
|
|
||||||
;; FIXME: There's probably a better way to do this with
|
|
||||||
;; define-runtime-path and cross-system-library-subpath,
|
|
||||||
;; but this is what the bcrypt package is doing.
|
|
||||||
(list (build-path (collection-path "ansi")
|
|
||||||
"private"
|
|
||||||
"compiled"
|
|
||||||
"native"
|
|
||||||
(system-library-subpath #f))))
|
|
||||||
|
|
||||||
(define libtty_raw
|
(define libtty_raw
|
||||||
(ffi-lib "libtty_raw" #:get-lib-dirs local-lib-dirs))
|
(ffi-lib "libtty_raw"))
|
||||||
|
|
||||||
(define-ffi-definer define-tty libtty_raw
|
(define-ffi-definer define-tty libtty_raw
|
||||||
#:default-make-fail make-not-available)
|
#:default-make-fail make-not-available)
|
||||||
|
|
Loading…
Reference in New Issue