Skip to content

Instantly share code, notes, and snippets.

@serenitii
Last active April 1, 2020 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serenitii/3af4a6bb5867bee93901169a6aaeef7d to your computer and use it in GitHub Desktop.
Save serenitii/3af4a6bb5867bee93901169a6aaeef7d to your computer and use it in GitHub Desktop.
Boost Intall with options of -fPIC -std=c++1z
#!/bin/sh
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2 && \
tar xjf boost_1_66_0.tar.bz2 && \
cd boost_1_66_0 && \
sh bootstrap.sh && \
./b2 --reconfigure stage toolset=gcc 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" \
sudo ./b2 install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment