]> gitweb.factorcode.org Git - factor.git/commitdiff
pcre.ffi: using find-library to locate shared lib
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 28 Nov 2013 08:23:47 +0000 (09:23 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 3 Dec 2013 01:07:17 +0000 (17:07 -0800)
extra/pcre/ffi/ffi.factor

index 3bba6dc95b81002b35d3633e85cf1632893246b4..772486373b6884ab8d56e948f7fe0035937da64d 100644 (file)
@@ -1,17 +1,14 @@
 USING:
-    alien alien.c-types alien.data alien.libraries alien.syntax
+    alien alien.c-types alien.data
+    alien.libraries alien.libraries.finder
+    alien.syntax
     classes.struct
     combinators
+    kernel
     system ;
 IN: pcre.ffi
 
-! http://sourceforge.net/projects/gnuwin32/files/pcre/7.0/pcre-7.0-bin.zip/download
-
-<< "pcre" {
-    { [ os macosx? ] [ "libpcre.dylib" ] }
-    { [ os unix? ] [ "libpcre.so" ] }
-    { [ os windows? ] [ "pcre3.dll" ] }
-} cond cdecl add-library >>
+<< "pcre" dup find-library cdecl add-library >>
 
 LIBRARY: pcre