* ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline

field.
	(search_head): Declare.
	(ldfile_add_library_path): Add new cmdline argument in prototype.
	* ldfile.c (search_head): Make non-static.
	(search_dirs_type): Move to ldfile.h.
	(ldfile_add_library_path): Accept cmdline argument, and save it.
	* lexsup.c (parse_args): Pass true for new cmdline argument of
	ldfile_add_library_path.
	(set_default_dirlist): Likewise.
	* ldmain.c (check_for_scripts_dir): Pass false for new cmdline
	argument of ldfile_add_library_path.
	* ldgram.y (ifile_p1): Likewise.
This commit is contained in:
Ian Lance Taylor
1994-06-02 21:30:57 +00:00
parent ebd6f11797
commit 0cd82d00da
5 changed files with 39 additions and 25 deletions

View File

@@ -397,7 +397,7 @@ check_for_scripts_dir (dir)
res = stat (buf, &s) == 0 && S_ISDIR (s.st_mode);
free (buf);
if (res)
ldfile_add_library_path (dir);
ldfile_add_library_path (dir, false);
return res;
}