* update gcc to 8.3.0

- add in missing files
  - enable docs
  - this build will remove static libraries where applicable
This commit is contained in:
Alexander Baldeck 2019-03-13 11:38:00 +01:00
parent 474c89c094
commit d290731acc
3 changed files with 28 additions and 10 deletions

View File

@ -6,7 +6,7 @@
# NOTE: libtool requires rebuilt with each new gcc version
pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go gcc-ada)
pkgver=8.2.1+20181127
pkgver=8.3.0
_majorver=${pkgver:0:1}
_islver=0.20
pkgrel=1
@ -14,18 +14,17 @@ pkgdesc='The GNU Compiler Collection'
arch=(x86_64 powerpc64le)
license=(GPL LGPL FDL custom)
url='http://gcc.gnu.org'
makedepends=(binutils libmpc gcc-ada python) #doxygen)
#checkdepends=(dejagnu inetutils)
makedepends=(binutils libmpc gcc-ada python doxygen)
checkdepends=(dejagnu inetutils)
options=(!emptydirs)
#source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig}
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
source=(https://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/gcc-${pkgver}.tar.xz{,.sig}
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
c89 c99)
validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org
86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub@redhat.com>
sha256sums=('6f64ffda2839e96a8551b767bf4f92be4e7a09377ea40058355b4eeb13bc3800'
sha256sums=('64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c'
'SKIP'
'b587e083eb65a8b394e833dea1744f21af3f0e413a448c17536b5549ae42a4c2'
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
@ -74,7 +73,6 @@ prepare() {
}
build() {
return 0
cd gcc-build
# using -pipe causes spurious test-suite failures
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
@ -85,7 +83,7 @@ return 0
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-bugurl=https://archlinuxpower.org/ \
--with-bugurl=https://github.com/kth5/archpower \
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++,ada \
--enable-shared \
--enable-threads=posix \
@ -231,7 +229,7 @@ package_gcc() {
install -Dm755 "$srcdir/c99" "$pkgdir/usr/bin/c99"
# install the libstdc++ man pages
#make -C $CHOST/libstdc++-v3/doc DESTDIR="$pkgdir" doc-install-man
make -C $CHOST/libstdc++-v3/doc DESTDIR="$pkgdir" doc-install-man
# byte-compile python libraries
python -m compileall "$pkgdir/usr/share/gcc-${pkgver%%+*}/"

10
gcc/c89 Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
fl="-std=c89"
for opt; do
case "$opt" in
-ansi|-std=c89|-std=iso9899:1990) fl="";;
-std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2
exit 1;;
esac
done
exec gcc $fl ${1+"$@"}

10
gcc/c99 Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
fl="-std=c99"
for opt; do
case "$opt" in
-std=c99|-std=iso9899:1999) fl="";;
-std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2
exit 1;;
esac
done
exec gcc $fl ${1+"$@"}