* 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:
Christopher Faylor
2005-06-04 02:11:50 +00:00
parent 15c04fd16e
commit 6e780c8bf5
4 changed files with 95 additions and 3 deletions

View File

@@ -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);