Do not alter pathnames when supplied by the user

This commit is contained in:
jjgarcia 2005-11-14 10:45:52 +00:00
parent 2e458ac55a
commit 5bd56c2787

View file

@ -618,7 +618,10 @@
(defvar +loaded-libraries+ nil)
(defun do-load-foreign-library (tmp)
(let* ((filename (namestring (compile-file-pathname tmp :type :lib)))
(let* ((path (cond ((pathnamep tmp) tmp)
((probe-file (setf tmp (string tmp))) tmp)
(t (compile-file-pathname tmp :type #+msvc :lib #-msvc :dll))))
(filename (namestring path))
(pack (find-package "COMPILER")))
(unless (find filename ffi::+loaded-libraries+ :test #'string-equal)
(setf (symbol-value (intern "*LD-FLAGS*" pack)) (concatenate 'string (symbol-value (intern "*LD-FLAGS*" pack)) " " filename))