Link pthread library for Linux binaries

This commit is contained in:
Asher Baker 2019-07-24 14:47:13 +01:00
parent efb02755bc
commit 8ce99e0540

View File

@ -416,7 +416,7 @@ class SMConfig(object):
if '-lgcc_eh' in binary.compiler.linkflags:
binary.compiler.linkflags.remove('-lgcc_eh')
if binary.compiler.like('gcc'):
binary.compiler.linkflags += ['-lstdc++']
binary.compiler.linkflags += ['-lstdc++', '-lpthread']
if binary.compiler.like('msvc'):
binary.compiler.linkflags += ['/SUBSYSTEM:CONSOLE']
return binary