* dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. Comment
to explain the caveats of this method. * how-cygtls-works.txt: New file.
This commit is contained in:
@@ -68,8 +68,8 @@ get_full_path_of_dll (const char* str, char *name)
|
||||
|
||||
if (isabspath (name) ||
|
||||
(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 */
|
||||
?: check_path_access ("/usr/lib", name, real_filename)) == NULL)
|
||||
real_filename.check (name, PC_SYM_FOLLOW | PC_NOFULL | PC_NULLEMPTY); /* Convert */
|
||||
|
||||
if (!real_filename.error)
|
||||
ret = strcpy (name, real_filename);
|
||||
|
Reference in New Issue
Block a user