link with -lpthread on linux

This commit is contained in:
josh committed 2014-06-05 19:26:38 -04:00
1 parent dce8f0db5f
commit 21c9e6edfb
1 file changed
+3
+3
View File
@@ -27,6 +27,9 @@ task :test => :library do
"gtest-#{GTEST_VERSION}/src/gtest_main.cc", "gtest-#{GTEST_VERSION}/src/gtest_main.cc",
"test/src/**/*.cc"] "test/src/**/*.cc"]
env.Program("build/tests", sources) env.Program("build/tests", sources)
if RUBY_PLATFORM =~ /linux/
env["LIBS"] << "pthread"
end
end end
system("./build/tests") system("./build/tests")
end end