Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-22 07:54:29 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-22 07:54:29 +0400
commitf82ca06eda7ea47511d97b9b5018f78ae82715ef (patch)
tree1a7724d7db5eb1954a2633a55c6b4dc75ac9e141 /winsup/cygwin/dlfcn.cc
parentf609f58d32ed91f857135cfc8b76ccba1b24e2e1 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r--winsup/cygwin/dlfcn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc
index bc0d70114..fc43ed38f 100644
--- a/winsup/cygwin/dlfcn.cc
+++ b/winsup/cygwin/dlfcn.cc
@@ -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)