X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=clsql-uffi.asd;h=fb22dc102d996c749875bb1672f33df1a149bc2a;hp=49ae32d440e67789a9c628ef4920881755d6e97f;hb=eb9d92a3c98130c7fe3b1bbc63dcfe285d02aba2;hpb=3ec4277531c7c19b1cffade823d3e2e3f928ceb3 diff --git a/clsql-uffi.asd b/clsql-uffi.asd index 49ae32d..fb22dc1 100644 --- a/clsql-uffi.asd +++ b/clsql-uffi.asd @@ -54,7 +54,9 @@ nil) ;;; library will be loaded by a loader file (defmethod operation-done-p ((o load-op) (c clsql-uffi-source-file)) - nil) + (and (symbol-function (intern (symbol-name '#:atol64) + (find-package '#:clsql-uffi))) + t)) (defmethod perform ((o compile-op) (c clsql-uffi-source-file)) #-(or win32 mswindows) @@ -67,10 +69,11 @@ (error 'operation-error :component c :operation o))) (defmethod operation-done-p ((o compile-op) (c clsql-uffi-source-file)) - (let ((lib (make-pathname :defaults (component-pathname c) - :type (uffi:default-foreign-library-type)))) - (and (probe-file lib) - (> (file-write-date lib) (file-write-date (component-pathname c)))))) + (or (and (probe-file #p"/usr/lib/clsql/uffi.so") t) + (let ((lib (make-pathname :defaults (component-pathname c) + :type (uffi:default-foreign-library-type)))) + (and (probe-file lib) + (> (file-write-date lib) (file-write-date (component-pathname c))))))) #+(or allegro lispworks cmu sbcl openmcl mcl scl) (defsystem clsql-uffi @@ -86,7 +89,7 @@ :components ((:module :uffi :components - ((:clsql-uffi-source-file "uffi") - (:file "clsql-uffi-package") + ((:file "clsql-uffi-package") + (:clsql-uffi-source-file "uffi" :depends-on ("clsql-uffi-package")) (:file "clsql-uffi-loader" :depends-on ("clsql-uffi-package" "uffi")) (:file "clsql-uffi" :depends-on ("clsql-uffi-loader"))))))