diff --git a/ansi/info.rkt b/ansi/info.rkt index 4c88426..f7e21fd 100644 --- a/ansi/info.rkt +++ b/ansi/info.rkt @@ -9,3 +9,7 @@ (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/libtty_raw.so")) diff --git a/ansi/private/install.rkt b/ansi/private/install.rkt index 5f441fd..3d5132c 100644 --- a/ansi/private/install.rkt +++ b/ansi/private/install.rkt @@ -22,7 +22,6 @@ (build-path ansi/private/ "compiled" "native" - (system-library-subpath #f) (append-extension-suffix "libtty_raw"))) (when (file-exists? libtty_raw.so) (delete-file libtty_raw.so)) diff --git a/ansi/private/tty-raw-extension.rkt b/ansi/private/tty-raw-extension.rkt index 6abc33f..00997b1 100644 --- a/ansi/private/tty-raw-extension.rkt +++ b/ansi/private/tty-raw-extension.rkt @@ -7,18 +7,8 @@ (provide (protect-out tty-raw! 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 - (ffi-lib "libtty_raw" #:get-lib-dirs local-lib-dirs)) + (ffi-lib "libtty_raw")) (define-ffi-definer define-tty libtty_raw #:default-make-fail make-not-available)