aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-05-18 18:08:03 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-05-18 18:08:03 +0000
commit91e75c8a9c3b92c1699a156890fc97587bc17098 (patch)
treea2f77d1f1165c7a5f6a78c260bd9be3bc42eb840 /gold/script.cc
parentbd7b51b4c67b4b655e4783945b2828bec39c6721 (diff)
downloadgdb-91e75c8a9c3b92c1699a156890fc97587bc17098.zip
gdb-91e75c8a9c3b92c1699a156890fc97587bc17098.tar.gz
gdb-91e75c8a9c3b92c1699a156890fc97587bc17098.tar.bz2
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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc
index a68fb38..fc036bb 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());