diff options
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 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()); |