link with -lpthread on linux
This commit is contained in:
parent
dce8f0db5f
commit
21c9e6edfb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user