From 8ce99e05405e62113af7175a19ea4d9ff6e49f2a Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Wed, 24 Jul 2019 14:47:13 +0100 Subject: [PATCH] Link pthread library for Linux binaries --- AMBuildScript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 98bdb03e..96717eda 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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