2018-08-14 22:28:55 +02:00
|
|
|
VERSION="8.2.0"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="gcc-$VERSION"
|
|
|
|
TARBALL="gcc-$VERSION.tar.xz"
|
|
|
|
URL="http://ftp.gnu.org/gnu/gcc/gcc-$VERSION"
|
2018-08-14 22:28:55 +02:00
|
|
|
SHA256SUM="196c3c04ba2613f893283977e6011b2345d1cd1af9abeac58e916b1aab3e0080"
|
2018-02-17 00:18:47 +01:00
|
|
|
DEPENDS="tc-binutils tc-cloog tc-gmp tc-isl tc-mpc tc-mpfr linux_headers"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
for child in cloog gmp isl mpc mpfr; do
|
2018-02-19 12:55:59 +01:00
|
|
|
include_pkg "tc-$child"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
if [ ! -e "$child" ]; then
|
|
|
|
echo "installing symlink to $child..."
|
|
|
|
ln -s "$PKGSRCDIR/$SRCDIR" "$child"
|
|
|
|
else
|
|
|
|
if [ ! -L "$child" ]; then
|
|
|
|
echo "ERROR: $child " \
|
|
|
|
"exists but is not a symlink!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
|
|
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
|
|
|
--with-sysroot="$TCDIR/$TARGET" \
|
|
|
|
--disable-nls --disable-shared --without-headers \
|
|
|
|
--disable-multilib --disable-decimal-float \
|
|
|
|
--disable-libgomp --disable-libmudflap \
|
|
|
|
--disable-libssp --disable-libatomic \
|
|
|
|
--disable-libquadmath --disable-threads \
|
|
|
|
--enable-languages=c --with-newlib \
|
|
|
|
--with-arch="$GCC_CPU" $GCC_EXTRACFG
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS all-gcc all-target-libgcc
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
make install-gcc install-target-libgcc
|
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "http://ftp.gnu.org/gnu/gcc" | \
|
|
|
|
grep -o ">gcc-[0-9.]*/<" | \
|
|
|
|
sed 's/>gcc-//g' | sed 's/\/<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|