(define (load-library-object-file name errors?)
(let ((pathname
(merge-pathnames (pathname-new-type name "so")
- (system-library-directory-pathname "lib"))))
+ (system-library-directory-pathname "lib" errors?))))
(if (and errors? (not (file-regular? pathname)))
(error "No library object file of this name:" name))
(if (dld-loaded-file? pathname)
(define (system-library-directory-pathname #!optional pathname required?)
(if (if (default-object? pathname) #f pathname)
(let ((dir (%find-library-file pathname)))
- (cond ((file-directory? dir)
+ (cond ((and dir (file-directory? dir))
(pathname-as-directory dir))
((if (default-object? required?) #f required?)
(system-library-directory-pathname