summaryrefslogtreecommitdiff
path: root/pcr/riscv64-linux-gnu-gcc-bootstrap
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-20 13:26:41 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-20 13:26:41 +0100
commitaa5a1b49d9f7eda4b864d12e90c2cf49fda43f35 (patch)
tree3330fad90f88ba09b7b473330d363fa6fc981259 /pcr/riscv64-linux-gnu-gcc-bootstrap
parent5dc7c715dbe22e410ce8ab33b6dd2d41f4401122 (diff)
downloadabslibre-aa5a1b49d9f7eda4b864d12e90c2cf49fda43f35.tar.gz
abslibre-aa5a1b49d9f7eda4b864d12e90c2cf49fda43f35.tar.bz2
abslibre-aa5a1b49d9f7eda4b864d12e90c2cf49fda43f35.zip
pcr/riscv64-*: updated
Diffstat (limited to 'pcr/riscv64-linux-gnu-gcc-bootstrap')
-rw-r--r--pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD42
1 files changed, 23 insertions, 19 deletions
diff --git a/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD b/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD
index 9a48ab126..e8456694d 100644
--- a/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD
+++ b/pcr/riscv64-linux-gnu-gcc-bootstrap/PKGBUILD
@@ -9,40 +9,44 @@
_target=riscv64-linux-gnu
pkgname=$_target-gcc-bootstrap
-_snapshot=20171231
-pkgver=7.2.0.v$_snapshot
+pkgver=7.3.0
+_islver=0.18
pkgrel=1
+_snapshot=7-20180125
pkgdesc='The GNU Compiler Collection - cross compiler for riscv64 target - bootstrap version. only used to build initial glibc and compiler'
arch=(x86_64)
-url='https://github.com/riscv/riscv-gnu-toolchain'
+url='http://gcc.gnu.org/'
license=(GPL LGPL FDL)
depends=($_target-binutils libmpc zlib)
-makedepends=(git)
+makedepends=(gmp mpfr)
options=(!emptydirs !strip)
provides=(${pkgname%-bootstrap})
conflicts=(${pkgname%-bootstrap})
-source=("$_target::git+https://github.com/riscv/riscv-gnu-toolchain#tag=v$_snapshot")
-sha256sums=('SKIP')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
+ http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
+sha256sums=('f4cad0895aa6dd237cbcb6e81750e40c3fb3eba8a5bcdf25a21c4ee5520c344b'
+ '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b')
+
+if [ -n "$_snapshot" ]; then
+ _basedir=gcc-$_snapshot
+else
+ _basedir=gcc-$pkgver
+fi
prepare() {
- cd "$srcdir/$_target"
+ cd $_basedir
- # fix submodule repo paths
- sed -i 's#\.\.#git://github.com/riscv#' .gitmodules
- # update submodule
- git submodule update --init riscv-gcc
-
- cd "$srcdir/$_target/riscv-gcc"
+ # link isl for in-tree builds
+ ln -sf ../isl-$_islver isl
echo $pkgver > gcc/BASE-VER
- ./contrib/download_prerequisites
-
# Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
# hack! - some configure tests for header files using "$CPP $CPPFLAGS"
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_target/riscv-gcc/{libiberty,gcc}/configure
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_basedir/{libiberty,gcc}/configure
rm -rf $srcdir/gcc-build
mkdir $srcdir/gcc-build
@@ -56,7 +60,7 @@ build() {
CFLAGS=${CFLAGS/-pipe/}
CXXFLAGS=${CXXFLAGS/-pipe/}
- $srcdir/$_target/riscv-gcc/configure \
+ $srcdir/$_basedir/configure \
--prefix=/usr \
--program-prefix=$_target- \
--with-local-prefix=/usr/$_target \
@@ -78,8 +82,8 @@ build() {
--disable-libgomp \
--disable-nls \
--disable-bootstrap \
- --enable-chehcking=release \
- --disable-multilib \
+ --enable-checking=release \
+ --disable-multilib
make inhibit-libc=true all-gcc
make inhibit-libc=true all-target-libgcc