From: Chris Lattner Date: Mon, 21 Feb 2011 18:36:51 +0000 (+0000) Subject: Pass the right linker flag in openbsd::Link::ConstructJob, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2e40219e0a8f609a6c4cfc213223f02a3cef3c9;p=clang Pass the right linker flag in openbsd::Link::ConstructJob, patch by Matthew Dempsky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126133 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 6717349b97..2f264e5387 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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");