Link pthread library for Linux binaries
This commit is contained in:
parent
efb02755bc
commit
8ce99e0540
@ -416,7 +416,7 @@ class SMConfig(object):
|
|||||||
if '-lgcc_eh' in binary.compiler.linkflags:
|
if '-lgcc_eh' in binary.compiler.linkflags:
|
||||||
binary.compiler.linkflags.remove('-lgcc_eh')
|
binary.compiler.linkflags.remove('-lgcc_eh')
|
||||||
if binary.compiler.like('gcc'):
|
if binary.compiler.like('gcc'):
|
||||||
binary.compiler.linkflags += ['-lstdc++']
|
binary.compiler.linkflags += ['-lstdc++', '-lpthread']
|
||||||
if binary.compiler.like('msvc'):
|
if binary.compiler.like('msvc'):
|
||||||
binary.compiler.linkflags += ['/SUBSYSTEM:CONSOLE']
|
binary.compiler.linkflags += ['/SUBSYSTEM:CONSOLE']
|
||||||
return binary
|
return binary
|
||||||
|
Loading…
Reference in New Issue
Block a user