diff options
author | Chris Demetriou <cgd@google.com> | 2001-11-02 01:13:09 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2001-11-02 01:13:09 +0000 |
commit | 361b220ebe7753ec50bfdd6cde560cd242a5a9bb (patch) | |
tree | 1530967b9fb79685a6e91cc481fa5e5c3adc5d58 /ld/ldfile.c | |
parent | e3eb7b4206ec2d414f225046e15d6a5db3721a3e (diff) | |
download | ppe42-binutils-361b220ebe7753ec50bfdd6cde560cd242a5a9bb.tar.gz ppe42-binutils-361b220ebe7753ec50bfdd6cde560cd242a5a9bb.zip |
2001-11-01 Chris Demetriou <cgd@broadcom.com>
* ld.texinfo (Options): Document new option, -nostdlib.
* lexsup.c (OPTION_NOSTDLIB): New definition.
(ld_options): Add entry for "nostdlib".
(parse_args): Handle OPTIONS_NOSTDLIB.
* ldfile.c (ldfile_add_library_path): Don't add directories
to the search path if they weren't specified on the command line
and -nostdlib was specified.
* ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r-- | ld/ldfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c index 039a648564..655ee60850 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -79,6 +79,9 @@ ldfile_add_library_path (name, cmdline) { search_dirs_type *new; + if (!cmdline && config.only_cmd_line_lib_dirs) + return; + new = (search_dirs_type *) xmalloc (sizeof (search_dirs_type)); new->next = NULL; new->name = name; |