diff options
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 039a648..655ee60 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; |