]> granicus.if.org Git - clang/commitdiff
Pass the right linker flag in openbsd::Link::ConstructJob,
authorChris Lattner <sabre@nondot.org>
Mon, 21 Feb 2011 18:36:51 +0000 (18:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Feb 2011 18:36:51 +0000 (18:36 +0000)
patch by Matthew Dempsky!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 6717349b9765ca03ff39a8e619146b0e9e7a6af3..2f264e5387742270b7766e3a51324ea422bf68e6 100644 (file)
@@ -3085,7 +3085,7 @@ void openbsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
     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");