[cfe-commits] r126133 - /cfe/trunk/lib/Driver/Tools.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 21 10:36:51 PST 2011
Author: lattner
Date: Mon Feb 21 12:36:51 2011
New Revision: 126133
URL: http://llvm.org/viewvc/llvm-project?rev=126133&view=rev
Log:
Pass the right linker flag in openbsd::Link::ConstructJob,
patch by Matthew Dempsky!
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=126133&r1=126132&r2=126133&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Feb 21 12:36:51 2011
@@ -3085,7 +3085,7 @@
CmdArgs.push_back("-lgcc");
if (Args.hasArg(options::OPT_pthread))
- CmdArgs.push_back("-pthread");
+ CmdArgs.push_back("-lpthread");
if (!Args.hasArg(options::OPT_shared))
CmdArgs.push_back("-lc");
CmdArgs.push_back("-lgcc");
More information about the cfe-commits
mailing list