fix library install path issues

This commit is contained in:
xenia 2021-04-04 04:17:39 -04:00
parent a0c50918da
commit 489c561386
3 changed files with 5 additions and 12 deletions

View File

@ -2,3 +2,7 @@
(define scribblings '(("unix-signals.scrbl" ())))
(define pre-install-collection "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/libracket_unix_signals.so"))

View File

@ -31,18 +31,8 @@
[send-signal!
(->/c fixnum? (or/c symbol? fixnum?) boolean?)])))
(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 "unix-signals")
"private"
"compiled"
"native"
(system-library-subpath #f))))
(define libracket-unix-signals
(ffi-lib "libracket_unix_signals" #:get-lib-dirs local-lib-dirs))
(ffi-lib "libracket_unix_signals"))
(define-ffi-definer define-unix libracket-unix-signals
#:default-make-fail make-not-available)

View File

@ -22,7 +22,6 @@
(build-path unix-signals/private/
"compiled"
"native"
(system-library-subpath #f)
(append-extension-suffix "libracket_unix_signals")))
(when (file-exists? libracket_unix_signals.so)
(delete-file libracket_unix_signals.so))