[cfe-commits] r140604 - /cfe/trunk/lib/Driver/ToolChains.cpp

David Chisnall csdavec at swan.ac.uk
Tue Sep 27 08:31:59 CDT 2011


Author: theraven
Date: Tue Sep 27 08:31:58 2011
New Revision: 140604

URL: http://llvm.org/viewvc/llvm-project?rev=140604&view=rev
Log:
Let -B work for ld paths on Linux.


Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=140604&r1=140603&r2=140604&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Sep 27 08:31:58 2011
@@ -1696,8 +1696,8 @@
   // 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);




More information about the cfe-commits mailing list