mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
2010-05-18 Rafael Espindola <espindola@google.com>
* options.cc (General_options::finalize): Handle -nostdlib. * options.h (nostdlib): New option. * script.cc (script_add_search_dir): Handle -nostdlib.
This commit is contained in:
@@ -2767,7 +2767,7 @@ script_add_search_dir(void* closurev, const char* option, size_t length)
|
||||
gold_warning(_("%s:%d:%d: ignoring SEARCH_DIR; SEARCH_DIR is only valid"
|
||||
" for scripts specified via -T/--script"),
|
||||
closure->filename(), closure->lineno(), closure->charpos());
|
||||
else
|
||||
else if (!closure->command_line()->options().nostdlib())
|
||||
{
|
||||
std::string s = "-L" + std::string(option, length);
|
||||
script_parse_option(closurev, s.c_str(), s.size());
|
||||
|
||||
Reference in New Issue
Block a user