nixpkgs/pkgs/gcc/gcc-build.sh

11 lines
220 B
Bash
Raw Normal View History

#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
mkdir build || exit 1
cd build || exit 1
../gcc-*/configure --prefix=$out --enable-languages=c,c++ || exit 1
make bootstrap || exit 1
make install || exit 1