aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-02 21:30:57 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-02 21:30:57 +0000
commit0cd82d00da11d624087fada13fc68db95b4d5e63 (patch)
tree2f955b69c0bf7aafa6aadfd580b15f563c12d41f /ld/lexsup.c
parentebd6f11797d7beb545cd48111210b07fdec806ce (diff)
downloadgdb-0cd82d00da11d624087fada13fc68db95b4d5e63.zip
gdb-0cd82d00da11d624087fada13fc68db95b4d5e63.tar.gz
gdb-0cd82d00da11d624087fada13fc68db95b4d5e63.tar.bz2
* 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.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 058f546..bf2365c 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -189,7 +189,7 @@ parse_args (argc, argv)
xexit (0);
break;
case 'L':
- ldfile_add_library_path (optarg);
+ ldfile_add_library_path (optarg, true);
break;
case 'l':
lang_add_input_file (optarg, lang_input_file_is_l_enum,
@@ -335,7 +335,7 @@ set_default_dirlist (dirlist_ptr)
if (p != NULL)
*p = 0;
if (*dirlist_ptr)
- ldfile_add_library_path (dirlist_ptr);
+ ldfile_add_library_path (dirlist_ptr, true);
if (p == NULL)
break;
*p = ':';