diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-04 05:49:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-04 05:49:04 +0000 |
commit | ad2d6943a49fa11ba1e23749973c75feb12dcf6b (patch) | |
tree | bc02409b029014fba4f735d3dea15217bbb58c9b /gold/fileread.cc | |
parent | 4638dbaa96a30d93647bb737b9a49ee1ca878a7d (diff) | |
download | gdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.zip gdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.tar.gz gdb-ad2d6943a49fa11ba1e23749973c75feb12dcf6b.tar.bz2 |
Full support for --sysroot.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index 9e6cd90..1bbd841 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -414,10 +414,10 @@ Input_file::open(const General_options& options, const Dirsearch& dirpath) n2 = n1 + ".a"; n1 += ".so"; } - name = dirpath.find(n1, n2); + name = dirpath.find(n1, n2, &this->is_in_sysroot_); if (name.empty()) { - fprintf(stderr, _("%s: cannot find %s\n"), program_name, + fprintf(stderr, _("%s: cannot find -l%s\n"), program_name, this->input_argument_->name()); gold_exit(false); } @@ -437,7 +437,8 @@ Input_file::open(const General_options& options, const Dirsearch& dirpath) if (::stat(name.c_str(), &dummy_stat) < 0) { // extra_search_path failed, so check the normal search-path. - name = dirpath.find(this->input_argument_->name(), ""); + name = dirpath.find(this->input_argument_->name(), "", + &this->is_in_sysroot_); if (name.empty()) { fprintf(stderr, _("%s: cannot find %s\n"), program_name, |