[cfe-commits] r108830 - /cfe/trunk/lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Jul 20 05:59:03 PDT 2010
Author: rafael
Date: Tue Jul 20 07:59:03 2010
New Revision: 108830
URL: http://llvm.org/viewvc/llvm-project?rev=108830&view=rev
Log:
Add -lstdc++ to DragonFly tools.
Patch by Sascha Wildner.
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=108830&r1=108829&r2=108830&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Jul 20 07:59:03 2010
@@ -3298,6 +3298,11 @@
CmdArgs.push_back("/usr/lib");
}
+ if (D.CCCIsCXX) {
+ CmdArgs.push_back("-lstdc++");
+ CmdArgs.push_back("-lm");
+ }
+
if (Args.hasArg(options::OPT_shared)) {
CmdArgs.push_back("-lgcc_pic");
} else {
More information about the cfe-commits
mailing list