link gtest code with -lpthread
authorEvan Martin <martine@danga.com>
Fri, 9 Sep 2011 15:53:08 +0000 (08:53 -0700)
committerEvan Martin <martine@danga.com>
Fri, 9 Sep 2011 15:53:08 +0000 (08:53 -0700)
I broke this in a refactoring.

configure.py

index 8d9caca..6d21e6b 100755 (executable)
@@ -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)])