From 956f1a28275d5eee81c91ea05be664925b4769b5 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Sun, 1 Sep 2019 07:39:36 +0000 Subject: [PATCH] Added sit class file for gcc 9.2.0 --- packages/compiler/gcc/gcc-9.2.0 | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 packages/compiler/gcc/gcc-9.2.0 diff --git a/packages/compiler/gcc/gcc-9.2.0 b/packages/compiler/gcc/gcc-9.2.0 new file mode 100755 index 0000000..20eef43 --- /dev/null +++ b/packages/compiler/gcc/gcc-9.2.0 @@ -0,0 +1,47 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2019 +# +# sit command: + + +CATEGORY="compiler" +PACKAGE="gnu" +VERSION="9.2.0" +URL="http://gcc.gnu.org" +INSTALLER="Christoph Niethammer " + +# Archive A and package name P +A=gcc-${VERSION}.tar.xz +P=gcc-${VERSION} + +src_unpack() { + # extract gcc source package + unpack + if [ $PLATFORM = "laki" ] ; then + # Currently, older versions of GMP, MPFR and MPC are installed to avoid problems + # http://gcc.gnu.org/install/prerequisites.html + # unpack required GMP, MPFR and MPC sources into subdirectories + tar xjf ${SRC_POOL}/gmp-6.1.2.tar.bz2 -C $SRCDIR + tar xjf ${SRC_POOL}/mpfr-4.0.2.tar.bz2 -C $SRCDIR + tar xzf ${SRC_POOL}/mpc-1.1.0.tar.gz -C $SRCDIR + tar xjf ${SRC_POOL}/isl-0.21.tar.bz2 -C $SRCDIR + # rename subdirectories as required by gcc's configure + mv $SRCDIR/gmp-* $SRCDIR/gmp + mv $SRCDIR/mpfr-* $SRCDIR/mpfr + mv $SRCDIR/mpc-* $SRCDIR/mpc + mv $SRCDIR/isl-* $SRCDIR/isl + fi +} + +src_pretest() { + make check +} + +# Other interesting configure options: +# --enable-offload-targets=hsa \ +CONFIGURE_OPTS=" \ + --enable-languages=c,c++,fortran \ + " +