Skip to content

Commit

Permalink
Let -B work for ld paths on Linux.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140604 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
David Chisnall committed Sep 27, 2011
1 parent 2246368 commit 7f9b58b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Driver/ToolChains.cpp
Expand Up @@ -1696,8 +1696,8 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
// FIXME: This is in here to find crt1.o. It is provided by libc, and
// libc (like gcc), can be installed in any directory. Once we are
// fetching this from a config file, we should have a libc prefix.
Paths.push_back("/lib/../" + Lib);
Paths.push_back("/usr/lib/../" + Lib);
Paths.push_back("=/lib/../" + Lib);
Paths.push_back("=/usr/lib/../" + Lib);

if (!Suffix.empty())
Paths.push_back(Base);
Expand Down

0 comments on commit 7f9b58b

Please sign in to comment.