aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2011-09-27 13:31:58 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2011-09-27 13:31:58 +0000
commit7f9b58b171ea24a5ed14dddb43fe057abcad0ece (patch)
treeb7008a61e67b15fc1cb2d9532114b6c3b34b1222 /lib/Driver/ToolChains.cpp
parent2246368b1061ef48e00bfc95d519d4393dff9926 (diff)
Let -B work for ld paths on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index b11fc89aa6..8cfe859311 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -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);