Skip to content

Commit

Permalink
Fix build against static libboost
Browse files Browse the repository at this point in the history
(cherry-picked from commit c51065e)
  • Loading branch information
loonycyborg committed Oct 7, 2018
1 parent 2a9c3d6 commit a0c91ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SConstruct
Expand Up @@ -370,8 +370,9 @@ if env["prereqs"]:
conf.CheckBoostIostreamsBZip2() & \
conf.CheckBoost("random", require_version = boost_version) & \
conf.CheckBoost("smart_ptr", header_only = True) & \
CheckAsio(conf) & \
conf.CheckBoost("thread") & \
conf.CheckBoost("locale") & \
CheckAsio(conf) & \
conf.CheckBoost("filesystem") \
and Info("Base prerequisites are met")) \
or Warning("Base prerequisites are not met")
Expand Down
2 changes: 1 addition & 1 deletion scons/boost.py
Expand Up @@ -78,7 +78,7 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
else:
env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
if not header_only:
env.AppendUnique(LIBS = [libname])
env.PrependUnique(LIBS = [libname])
if boost_lib == "thread" and env["PLATFORM"] == "posix":
env.AppendUnique(CCFLAGS = ["-pthread"], LINKFLAGS = ["-pthread"])

Expand Down

0 comments on commit a0c91ac

Please sign in to comment.