Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vagetablechicken/4424a72ab0c6fe765851e253dee13bed to your computer and use it in GitHub Desktop.
Save vagetablechicken/4424a72ab0c6fe765851e253dee13bed to your computer and use it in GitHub Desktop.
gcc build
higher gcc(>=7) don't have pthread,m,...
gcc 4.8.5/5.4.0 download and their prerequire dependencies:
https://gcc.gnu.org/pub/gcc/
depends: https://gcc.gnu.org/pub/gcc/infrastructure/
mkdir build & cd build
../configure --prefix=`pwd`/../output --enable-checking=release --enable-languages=c,c++ --disable-multilib # Multilib means support for multiple architectures
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment