From 21c9e6edfb30dda4a5a585ecb5965769c3044bde Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 5 Jun 2014 19:26:38 -0400 Subject: [PATCH] link with -lpthread on linux --- Rakefile.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rakefile.rb b/Rakefile.rb index 840ca96..e54d1cd 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -27,6 +27,9 @@ task :test => :library do "gtest-#{GTEST_VERSION}/src/gtest_main.cc", "test/src/**/*.cc"] env.Program("build/tests", sources) + if RUBY_PLATFORM =~ /linux/ + env["LIBS"] << "pthread" + end end system("./build/tests") end