gdbm.ffi: Use alien library finder except on Windows until we can test if it works there.
parent
9c1dd0ad58
commit
7c06afa219
|
@ -1,14 +1,12 @@
|
||||||
! Copyright (C) 2010 Dmitry Shubin.
|
! Copyright (C) 2010 Dmitry Shubin.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: alien alien.c-types alien.libraries alien.syntax classes.struct
|
USING: alien alien.c-types alien.libraries alien.libraries.finder
|
||||||
combinators system ;
|
alien.syntax classes.struct combinators kernel system ;
|
||||||
IN: gdbm.ffi
|
IN: gdbm.ffi
|
||||||
|
|
||||||
<< "libgdbm" {
|
<< "libgdbm"
|
||||||
{ [ os macosx? ] [ "libgdbm.dylib" ] }
|
os windows? [ "gdbm3.dll" ] [ "gdbm" find-library ] if
|
||||||
{ [ os unix? ] [ "libgdbm.so.3" ] }
|
cdecl add-library >>
|
||||||
{ [ os windows? ] [ "gdbm3.dll" ] }
|
|
||||||
} cond cdecl add-library >>
|
|
||||||
|
|
||||||
LIBRARY: libgdbm
|
LIBRARY: libgdbm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue