[cfe-commits] r86459 - /cfe/trunk/lib/Driver/Tools.cpp

Edward O'Callaghan eocallaghan at auroraux.org
Sun Nov 8 02:13:43 PST 2009


Author: evocallaghan
Date: Sun Nov  8 04:13:36 2009
New Revision: 86459

URL: http://llvm.org/viewvc/llvm-project?rev=86459&view=rev
Log:
Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.

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

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=86459&r1=86458&r2=86459&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Nov  8 04:13:36 2009
@@ -2595,6 +2595,10 @@
     else
       CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath(C, "crtendS.o")));
     CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath(C, "crtn.o")));
+    // FIXME: g++ is more complicated here, it tries to put -lstdc++
+    // before -lm, for example.
+    if (D.CCCIsCXX)
+      CmdArgs.push_back("-lstdc++");
   }
 
   const char *Exec =





More information about the cfe-commits mailing list