Skip to content

Instantly share code, notes, and snippets.

@klgraham
klgraham / build-gcc.sh
Last active September 18, 2016 17:47 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch. Should only build static libraries.
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## 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