]> gitweb.factorcode.org Git - factor.git/commitdiff
llvm.core: fix add-llvm-library
authorsheeple <sheeple@linux-x86-32.(none)>
Fri, 10 Jul 2009 12:38:19 +0000 (07:38 -0500)
committersheeple <sheeple@linux-x86-32.(none)>
Fri, 10 Jul 2009 12:38:19 +0000 (07:38 -0500)
extra/llvm/core/core.factor

index cb62821390dc1d6aa24982aff38c3114dfdbca67..0d1b22e2887828af31b44d469ded158273f537f7 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2009 Matthew Willis.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien.libraries alien.syntax system sequences combinators ;
+USING: alien.libraries alien.syntax system sequences combinators kernel ;
 
 IN: llvm.core
 
@@ -11,8 +11,8 @@ IN: llvm.core
     {
         { [ os macosx? ] [ "/usr/local/lib/lib" ".dylib" surround ] }
         { [ os windows? ] [ ".dll" append ] }
-        { [ os unix? ] [ ".so" append ] }
-    } cond add-library ;
+        { [ os unix? ] [ "lib" ".so" surround ] }
+    } cond "cdecl" add-library ;
 
 "LLVMSystem" add-llvm-library
 "LLVMSupport" add-llvm-library