link with -lpthread on linux

This commit is contained in:
Josh Holtrop 2014-06-05 19:26:38 -04:00
parent dce8f0db5f
commit 21c9e6edfb

View File

@ -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