curses.ffi: on some linuxes, libncursesw.so is a linker script so find-library is needed to find the real elf file

db4
Björn Lindqvist 2014-08-17 20:34:50 +02:00 committed by Doug Coleman
parent a8173daca2
commit b5147aa549
1 changed files with 2 additions and 2 deletions

View 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