From e349025485edf4a09907eee2d1f553d1f7fb5bd1 Mon Sep 17 00:00:00 2001 From: vladlosev Date: Fri, 19 Nov 2010 20:05:58 +0000 Subject: [PATCH] Fixes scripts/test/Makefile failing with link error. --- scripts/test/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test/Makefile b/scripts/test/Makefile index ffc0c90a..cdff5846 100644 --- a/scripts/test/Makefile +++ b/scripts/test/Makefile @@ -21,7 +21,9 @@ SAMPLE_DIR = ../../samples GTEST_MAIN_CC = ../../src/gtest_main.cc # Flags passed to the preprocessor. -CPPFLAGS += -I$(FUSED_GTEST_DIR) +# We have no idea here whether pthreads is available in the system, so +# disable its use. +CPPFLAGS += -I$(FUSED_GTEST_DIR) -DGTEST_HAS_PTHREAD=0 # Flags passed to the C++ compiler. CXXFLAGS += -g