2016-04-28 13:03:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# sit class file
|
|
|
|
#
|
|
|
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2015
|
|
|
|
#
|
|
|
|
# sit command:
|
|
|
|
|
|
|
|
|
|
|
|
CATEGORY="compiler"
|
|
|
|
PACKAGE="gnu"
|
|
|
|
VERSION="6.1.0"
|
|
|
|
URL="http://gcc.gnu.org"
|
|
|
|
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
|
|
|
|
|
|
|
# Archive A and package name P
|
|
|
|
A=gcc-${VERSION}.tar.bz2
|
|
|
|
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
|
2016-05-02 08:53:19 +00:00
|
|
|
tar xjf ${SRC_POOL}/gmp-6.1.0.tar.bz2 -C $SRCDIR
|
|
|
|
tar xjf ${SRC_POOL}/mpfr-3.1.4.tar.bz2 -C $SRCDIR
|
|
|
|
tar xzf ${SRC_POOL}/mpc-1.0.3.tar.gz -C $SRCDIR
|
|
|
|
tar xjf ${SRC_POOL}/isl-0.16.1.tar.bz2 -C $SRCDIR
|
2016-04-28 13:03:59 +00:00
|
|
|
# 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:
|
|
|
|
CONFIGURE_OPTS=" \
|
|
|
|
--enable-languages=c,c++,fortran \
|
2016-05-02 08:53:19 +00:00
|
|
|
--enable-offload-targets=hsa \
|
2016-04-28 13:03:59 +00:00
|
|
|
"
|
|
|
|
|