Skip to content

Instantly share code, notes, and snippets.

@vladon
Last active May 18, 2018 14:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladon/9fca017890ba024143f2 to your computer and use it in GitHub Desktop.
Save vladon/9fca017890ba024143f2 to your computer and use it in GitHub Desktop.
Build Boost 1.60 on Linux and Windows
// linux:
sudo ./bootstrap.sh --with-toolset=clang
sudo ./b2 --reconfigure stage toolset=clang cxxflags="-std=c++1z -fPIC -O3 -Werror -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-function" link=static,shared variant=release threading=multi linkflags="-fPIC" define=BOOST_SYSTEM_NO_DEPRECATED -q toolset=clang
-fPIC" define=BOOST_SYSTEM_NO_DEPRECATED -q
// windows:
bootstrap
b2 headers
b2 --reconfigure stage --without-mpi --build-type=complete --layout=versioned variant=debug,release link=static,shared threading=single,multi runtime-link=static,shared define=BOOST_SYSTEM_NO_DEPRECATED address-model=32 -q
b2 --reconfigure stage --without-mpi --build-type=complete --layout=versioned variant=debug,release link=static,shared threading=single,multi runtime-link=static,shared define=BOOST_SYSTEM_NO_DEPRECATED address-model=64 -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment