chiark / gitweb /
Fix to load shared libraries from default locations in CMUCL and CLISP
[clg] / tools / config.lisp
index c38b0347c07f1d717b85533c53f6e8c20f22788e..472d02a5ca0e68f2a191e7429e4c28ac604aa915 100644 (file)
@@ -147,7 +147,10 @@   (defun sbcl-version ()
     (values-list
      (loop
       repeat 4
-      for part in (split-string (lisp-implementation-version) :delimiter #\.)
+      ;; We use . and - as delimiters because some Linux
+      ;; distributions tend to patch SBCL and add a distro-specific
+      ;; version tag (like 1.0.19-gentoo).
+      for part in (split-string (lisp-implementation-version) :delimiter '(#\. #\-))
       while (every #'digit-char-p part)
       collect (parse-integer part))))
   (defun sbcl>= (major minor micro &optional patch)