--- ltdl/ltdl.c 2008-05-04 19:16:42.000000000 -0400 +++ ltdl/ltdl.c.oden 2009-11-22 10:44:41.000000000 -0500 @@ -524,7 +524,8 @@ find_module (lt_dlhandle *handle, const /* Try to open the old library first; if it was dlpreopened, we want the preopened version of it, even if a dlopenable module is available. */ - if (old_name && tryall_dlopen (handle, old_name, advise, 0) == 0) + if (old_name && tryall_dlopen (handle, old_name, + advise, lt_dlloader_find ("lt_preopen") ) == 0) { return 0; } @@ -1326,7 +1327,7 @@ try_dlopen (lt_dlhandle *phandle, const } #endif } - if (!file) + else { file = fopen (attempt, LT_READTEXT_MODE); }