link gtest code with -lpthread

I broke this in a refactoring.
This commit is contained in:
Evan Martin 2011-09-09 08:53:08 -07:00
parent 4e5225b94e
commit f5ac6b4cea

View File

@ -178,7 +178,7 @@ for name in ['build_test', 'build_log_test', 'disk_interface_test',
objs += cxx(name, variables=[('cflags', test_cflags)])
if platform != 'mingw':
libs.append('-lpthread')
test_libs.append('-lpthread')
n.build('ninja_test', 'link', objs, implicit=ninja_lib,
variables=[('ldflags', test_ldflags),
('libs', test_libs)])