Skip to content

Instantly share code, notes, and snippets.

@paiv
Last active August 29, 2015 14:24
Show Gist options
  • Save paiv/ecef56209fc0d3281baa to your computer and use it in GitHub Desktop.
Save paiv/ecef56209fc0d3281baa to your computer and use it in GitHub Desktop.
Pick libraries from boost
# download
curl -RLO "http://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz"
tar -xzf boost_1_58_0.tar.gz
cd boost_1_58_0
# build tools
./bootstrap.sh --prefix=./dist
./b2 tools/bcp
# extract selected libraries
dist/bin/bcp ^
build ^
boost/regex.hpp ^
boost/serialization/export.hpp ^
boost/archive/text_oarchive.hpp ^
boost/archive/text_iarchive.hpp ^
boost/algorithm/string/replace.hpp ^
boost/algorithm/string.hpp ^
boost/noncopyable.hpp ^
boost/serialization/map.hpp ^
boost/lambda/lambda.hpp ^
picked-boost
# build static lib
cd picked-boost
./bootstrap.sh
./b2 -q --build-dir=./build --without-test variant=release link=static threading=single stage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment