diff --git a/lisp/comp/comp.l b/lisp/comp/comp.l index 42e078dd7..bc3687718 100644 --- a/lisp/comp/comp.l +++ b/lisp/comp/comp.l @@ -1237,6 +1237,8 @@ *verbose* verbose) (unless (send (pathname file) :directory) (setq file (namestring (merge-pathnames "./" file)))) + (when (and (null o) (send (pathname file) :directory)) + (setq o (send (pathname file) :directory-string))) (when o (setq o (pathname o)) (setq o (merge-pathnames o file))