]> gitweb.factorcode.org Git - factor.git/commitdiff
curses.ffi: on some linuxes, libncursesw.so is a linker script so find-library is...
authorBjörn Lindqvist <bjourne@gmail.com>
Sun, 17 Aug 2014 18:34:50 +0000 (20:34 +0200)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 25 Aug 2014 21:50:26 +0000 (14:50 -0700)
extra/curses/ffi/ffi.factor

index 9c87d72173d2c4d72331bd2430fcac81bf69888d..18d309220926d40b4c37e7cf8657ab82e33ea422 100644 (file)
@@ -1,13 +1,13 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors alien alien.c-types alien.libraries
+USING: accessors alien alien.c-types alien.libraries alien.libraries.finder
 alien.syntax classes.struct combinators kernel math system unix.types ;
 IN: curses.ffi
 
 << "curses" {
     { [ os windows? ]  [ "libcurses.dll" ] }
     { [ os macosx? ] [ "libcurses.dylib" ] }
-    { [ os unix?  ]  [ "libncursesw.so" ] }
+    { [ os unix?  ]  [ "ncursesw" find-library ] }
 } cond cdecl add-library >>
 
 C-TYPE: SCREEN