pkg(gcc-10.2.0): Add c, c++ and D via gcc 10.2.0

This commit is contained in:
Thomas Hobson 2021-03-13 23:12:50 +13:00
parent 3bec1c3499
commit f852b60b69
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
8 changed files with 83 additions and 0 deletions

25
packages/gcc/10.2.0/build.sh vendored Executable file
View file

@ -0,0 +1,25 @@
#!/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 ===
../build/configure --prefix "$PREFIX" --enable-languages=c,c++,d --disable-multilib --disable-bootstrap
make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build obj