Properly pass -pthread for asio check

This commit is contained in:
loonycyborg 2023-06-11 15:02:52 +03:00
parent a501343865
commit c1c0b0567c
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61

View file

@ -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 = """