aboutsummaryrefslogtreecommitdiffstats
path: root/scons/SConstruct.common
diff options
context:
space:
mode:
Diffstat (limited to 'scons/SConstruct.common')
-rw-r--r--scons/SConstruct.common2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/SConstruct.common b/scons/SConstruct.common
index 59b8864b..6b10033b 100644
--- a/scons/SConstruct.common
+++ b/scons/SConstruct.common
@@ -200,7 +200,9 @@ class SConstructHelper:
'-Wall',
'-Werror',
'-Wshadow',
+ '-DGTEST_HAS_PTHREAD=1'
])
+ env.Append(LINKFLAGS=['-pthread'])
if optimized:
env.Append(CCFLAGS=['-O2'], CPPDEFINES=['NDEBUG', '_NDEBUG'])
else: