summaryrefslogtreecommitdiffstats
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
commit3c9029b06c1cca785495d2fa58cfc5eb2e1c2e24 (patch)
tree9cc929f45acc82960b4255b5f8abd8f946b5ef26
parent38b3b83362669c6755d2aad91a0b315c5ffdf46b (diff)
downloadbcm5719-llvm-3c9029b06c1cca785495d2fa58cfc5eb2e1c2e24.tar.gz
bcm5719-llvm-3c9029b06c1cca785495d2fa58cfc5eb2e1c2e24.zip
Let -B work for ld paths on Linux.
llvm-svn: 140604
-rw-r--r--clang/lib/Driver/ToolChains.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index b11fc89aa6a..8cfe8593110 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud