Index: src/cmp/cmpbackend-cxx/cmpbackend-cxx.lsp
--- src/cmp/cmpbackend-cxx/cmpbackend-cxx.lsp.orig
+++ src/cmp/cmpbackend-cxx/cmpbackend-cxx.lsp
@@ -280,13 +280,7 @@ the environment variable TMPDIR to a different value."
 
 (defun ecl-library-directory ()
   "Finds the directory in which the ECL core library was installed."
-  (cond ((and *ecl-library-directory*
-              (probe-file (merge-pathnames (compile-file-pathname
-                                            "ecl" :type (if (member :dlopen *features*)
-                                                            :shared-library
-                                                            :static-library))
-                                           *ecl-library-directory*)))
-         *ecl-library-directory*)
+  (cond (*ecl-library-directory* *ecl-library-directory*)
         ((probe-file "SYS:BUILD-STAMP")
          (setf *ecl-library-directory* (namestring (translate-logical-pathname "SYS:"))))
         ((error "Unable to find library directory"))))
