diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-05-18 18:08:03 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-05-18 18:08:03 +0000 |
commit | 91e75c8a9c3b92c1699a156890fc97587bc17098 (patch) | |
tree | a2f77d1f1165c7a5f6a78c260bd9be3bc42eb840 /gold/script.cc | |
parent | 2010-05-18 Tristan Gingold <gingold@adacore.com> (diff) | |
download | binutils-gdb-91e75c8a9c3b92c1699a156890fc97587bc17098.tar.gz binutils-gdb-91e75c8a9c3b92c1699a156890fc97587bc17098.tar.bz2 binutils-gdb-91e75c8a9c3b92c1699a156890fc97587bc17098.zip |
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.
Diffstat (limited to 'gold/script.cc')
-rw-r--r-- | gold/script.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc index a68fb3865a0..fc036bbdaed 100644 --- a/gold/script.cc +++ b/gold/script.cc @@ -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()); |