* spawn.cc (find_exec): Accept a PATH-like string in place of an environment
variable. * dlfcn.cc (get_full_path_of_dll): Search /usr/bin (for windows compatibility) and /usr/lib (for UNIX compatibility) when looking for shared libraries. * environ.cc (conv_envvars): Put back LD_LIBRARY_PATH since it is used by get_full_path_of_dll(). * errno.cc (errmap): Map MOD_NOT_FOUND to ENOENT. * cygmagic: Remove debugging cruft.
This commit is contained in:
@@ -67,7 +67,8 @@ get_full_path_of_dll (const char* str, char *name)
|
||||
path_conv real_filename;
|
||||
|
||||
if (isabspath (name) ||
|
||||
(ret = check_path_access ("LD_LIBRARY_PATH=", name, real_filename)) == NULL)
|
||||
(ret = check_path_access ("LD_LIBRARY_PATH=", name, real_filename)
|
||||
?: check_path_access ("/usr/bin:/usr/lib", name, real_filename)) == NULL)
|
||||
real_filename.check (name); /* Convert */
|
||||
|
||||
if (!real_filename.error)
|
||||
|
Reference in New Issue
Block a user