Properly pass -pthread for asio check
This commit is contained in:
parent
a501343865
commit
c1c0b0567c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
|
|||
env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
|
||||
if not header_only:
|
||||
env.PrependUnique(LIBS = [libname])
|
||||
if boost_lib == "thread" and env["PLATFORM"] == "posix":
|
||||
if (boost_lib == "thread" or boost_lib == "asio") and env["PLATFORM"] == "posix":
|
||||
env.AppendUnique(CCFLAGS = ["-pthread"], LINKFLAGS = ["-pthread"])
|
||||
|
||||
test_program = """
|
||||
|
|
Loading…
Add table
Reference in a new issue