diff options
author | Stefan Schmidt | 2019-06-30 18:54:20 +0200 |
---|---|---|
committer | Stefan Schmidt | 2019-06-30 18:54:20 +0200 |
commit | e4943ebbd5028d967da84fee9fd8b9aa280078e6 (patch) | |
tree | 0f843e77d2467e28199259be0be950ed2b2c0f35 | |
download | aur-e4943ebbd5028d967da84fee9fd8b9aa280078e6.tar.gz |
Initial release
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 105 |
2 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..01005bfbde99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = powerpc64le-linux-gnu-gcc-stage2 + pkgdesc = The GNU Compiler Collection. Stage 2 for toolchain building (powerpc64le-linux-gnu) + pkgver = 9.1.0 + pkgrel = 4 + url = http://gcc.gnu.org + arch = i686 + arch = x86_64 + license = GPL + license = LGPL + license = FDL + license = custom + makedepends = gmp + makedepends = mpfr + depends = powerpc64le-linux-gnu-binutils>=2.30-1 + depends = powerpc64le-linux-gnu-glibc-headers>=2.27-1 + depends = libmpc + depends = zlib + provides = powerpc64le-linux-gnu-gcc-stage1=9.1.0 + conflicts = powerpc64le-linux-gnu-gcc-stage1 + replaces = powerpc64le-linux-gnu-gcc-stage1 + options = !emptydirs + options = !distcc + options = !strip + source = https://gcc.gnu.org/pub/gcc/releases/gcc-9.1.0/gcc-9.1.0.tar.xz + source = https://gcc.gnu.org/pub/gcc/releases/gcc-9.1.0/gcc-9.1.0.tar.xz.sig + source = http://isl.gforge.inria.fr/isl-0.21.tar.bz2 + validpgpkeys = 33C235A34C46AA3FFB293709A328C3A2C3C45C06 + sha256sums = 79a66834e96a6050d8fe78db2c3b32fb285b230b855d0a66288235bc04b327a0 + sha256sums = SKIP + sha256sums = d18ca11f8ad1a39ab6d03d3dcb3365ab416720fcb65b42d69f34f51bf0a0e859 + +pkgname = powerpc64le-linux-gnu-gcc-stage2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c4ce862a20a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,105 @@ +# Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com> +# Contributor: toha257 <toha257@gmail.com> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Kevin Mihelich <kevin@archlinuxarm.org> +# Contributor: Tavian Barnes <tavianator@tavianator.com> +# Maintainer: Tavian Barnes <tavianator@tavianator.com> + +_target="powerpc64le-linux-gnu" +pkgname=${_target}-gcc-stage2 +pkgver=9.1.0 +_majorver=${pkgver} +_islver=0.21 +pkgrel=4 +pkgdesc="The GNU Compiler Collection. Stage 2 for toolchain building (${_target})" +arch=(i686 x86_64) +license=(GPL LGPL FDL custom) +url='http://gcc.gnu.org' +depends=("${_target}-binutils>=2.30-1" "${_target}-glibc-headers>=2.27-1" libmpc zlib) +makedepends=(gmp mpfr) +options=(!emptydirs !distcc !strip) +conflicts=("${_target}-gcc-stage1") +replaces=("${_target}-gcc-stage1") +provides=("${_target}-gcc-stage1=${pkgver}") +source=(https://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} + http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2) +sha256sums=('79a66834e96a6050d8fe78db2c3b32fb285b230b855d0a66288235bc04b327a0' + SKIP + 'd18ca11f8ad1a39ab6d03d3dcb3365ab416720fcb65b42d69f34f51bf0a0e859') +validpgpkeys=(33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub@redhat.com> + +prepare() { + [[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc + cd gcc + + # link isl for in-tree build + ln -s ../isl-${_islver} isl + + # 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/" {libiberty,gcc}/configure + + mkdir -p "$srcdir/gcc-build" +} + +build() { + cd gcc-build + + # using -pipe causes spurious test-suite failures + # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565 + CFLAGS=${CFLAGS/-pipe/} + CXXFLAGS=${CXXFLAGS/-pipe/} + + "$srcdir/gcc/configure" --prefix=/usr \ + --program-prefix=${_target}- \ + --with-local-prefix=/usr/${_target} \ + --with-sysroot=/usr/${_target} \ + --with-build-sysroot=/usr/${_target} \ + --with-as=/usr/bin/${_target}-as \ + --with-ld=/usr/bin/${_target}-ld \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --disable-nls \ + --enable-languages=c,c++ \ + --disable-shared \ + --disable-threads \ + --with-system-zlib \ + --with-isl \ + --enable-__cxa_atexit \ + --disable-libunwind-exceptions \ + --enable-clocale=gnu \ + --disable-libstdcxx-pch \ + --disable-libssp \ + --enable-gnu-unique-object \ + --enable-linker-build-id \ + --disable-lto \ + --disable-plugin \ + --enable-install-libiberty \ + --with-linker-hash-style=gnu \ + --enable-gnu-indirect-function \ + --disable-multilib \ + --disable-werror \ + --enable-checking=release \ + --enable-default-pie \ + --enable-default-ssp \ + --target=${_target} \ + --host=${CHOST} \ + --build=${CHOST} + + make all-gcc all-target-libgcc +} + +package() { + cd gcc-build + + make DESTDIR="$pkgdir" install-gcc install-target-libgcc + + rm -rf "$pkgdir/usr/share" + + # strip it manually + strip "$pkgdir/usr/bin/"* 2>/dev/null || true + find "$pkgdir/usr/lib" -type f -exec /usr/bin/${_target}-strip \ + --strip-unneeded {} \; 2>/dev/null || true +} |