Skip to content

Instantly share code, notes, and snippets.

@congwang
congwang / build-gcc.sh
Last active November 24, 2024 21:24 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/gcc/"
INSTALLDIR="$HOME/gcc-$GCC_VERSION"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install