aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-21 18:36:51 +0000
committerChris Lattner <sabre@nondot.org>2011-02-21 18:36:51 +0000
commita2e40219e0a8f609a6c4cfc213223f02a3cef3c9 (patch)
tree481bdee637e3407c95b9383062ea5a63653fa827 /lib/Driver/Tools.cpp
parentb0c2301a40a3e54ce7195f11a59d025ef60ebffb (diff)
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
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");