Skip to content

Commit 8ce99e0

Browse files
committed
Link pthread library for Linux binaries
1 parent efb0275 commit 8ce99e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AMBuildScript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class SMConfig(object):
416416
if '-lgcc_eh' in binary.compiler.linkflags:
417417
binary.compiler.linkflags.remove('-lgcc_eh')
418418
if binary.compiler.like('gcc'):
419-
binary.compiler.linkflags += ['-lstdc++']
419+
binary.compiler.linkflags += ['-lstdc++', '-lpthread']
420420
if binary.compiler.like('msvc'):
421421
binary.compiler.linkflags += ['/SUBSYSTEM:CONSOLE']
422422
return binary

0 commit comments

Comments
 (0)