2021-03-13 11:12:50 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Put instructions to build your package in here
|
|
|
|
[[ -d "bin" ]] && exit 0
|
|
|
|
PREFIX=$(realpath $(dirname $0))
|
|
|
|
|
|
|
|
mkdir -p build obj
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
|
|
|
curl "https://ftp.gnu.org/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.gz" -o gcc.tar.gz
|
|
|
|
|
|
|
|
tar xzf gcc.tar.gz --strip-components=1
|
|
|
|
|
|
|
|
./contrib/download_prerequisites
|
|
|
|
|
|
|
|
cd ../obj
|
|
|
|
|
|
|
|
# === autoconf based ===
|
2021-04-28 01:02:17 +02:00
|
|
|
../build/configure --prefix "$PREFIX" --enable-languages=c,c++,d,fortran --disable-multilib --disable-bootstrap
|
2021-03-13 11:12:50 +01:00
|
|
|
|
|
|
|
make -j$(nproc)
|
|
|
|
make install -j$(nproc)
|
|
|
|
cd ../
|
|
|
|
rm -rf build obj
|
2021-03-15 07:38:57 +01:00
|
|
|
|