summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a1cf89ff65d..2422f717234 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,9 @@
# Maintainer: Joey Dumont <joey.dumont@gmail.com>
-
_target=mips64-ultra-elf
pkgname=${_target}-gcc
-_gccver=10.1.0
+_gccver=10.2.0
_islver=0.22
-pkgver=10.1.0_r128.79c3ef4
+pkgver=10.2.0_r134.54b8f95
pkgrel=1
pkgdesc="The GNU Compiler Collection (${_target})"
arch=('x86_64')
@@ -19,7 +18,7 @@ options=('!emptydirs' '!strip' )
source=("http://gcc.gnu.org/pub/gcc/releases/gcc-${_gccver}/gcc-${_gccver}.tar.xz"
"http://isl.gforge.inria.fr/isl-${_islver}.tar.xz"
"git+https://github.com/glankk/n64.git#branch=n64-ultra")
-sha256sums=('b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2'
+sha256sums=('b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c'
'6c8bc56c477affecba9c59e2c9f026967ac8bad01b51bdd07916db40a517b9fa'
'SKIP')
@@ -57,12 +56,14 @@ build() {
"${srcdir}"/gcc-${_gccver}/configure \
--prefix=/usr \
+ --libdir=/usr/${_target}/lib \
+ --libexecdir=/usr/${_target}/lib \
--target=${_target} \
--host=$CHOST \
--build=$CHOST \
--with-arch=vr4300 \
--with-abi=32 \
- --with-sysroot=/usr/${_target} \
+ --with-sysroot=/usr/${_target}/n64-sysroot/ \
--enable-languages=c,c++,lto \
--enable-sjlj-exceptions \
--with-gnu-as \
@@ -96,16 +97,16 @@ build() {
package() {
cd build-gcc
- make DESTDIR="${pkgdir}" install -j1
+ make DESTDIR="${pkgdir}" install
# strip target binaries
- find "$pkgdir"/usr/lib/gcc/$_target/${_gccver} "$pkgdir"/usr/$_target/lib -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
+ find "$pkgdir"/usr/${_target}/lib/gcc/$_target/${_gccver} "$pkgdir"/usr/$_target/lib -type f -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges -R .debug_loc '{}' \;
# strip host binaries
- find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc/$_target/${_gccver} -type f -and \( -executable \) -exec strip '{}' \;
+ find "$pkgdir"/usr/bin/ "$pkgdir"/usr/${_target}/lib/gcc/$_target/${_gccver} -type f -and \( -executable \) -exec strip '{}' \;
# Remove files that conflict with host gcc package
rm -r "$pkgdir"/usr/share/man/man7
rm -r "$pkgdir"/usr/share/info
- rm "$pkgdir"/usr/lib/libcc1.*
+ rm "$pkgdir"/usr/${_target}/lib/libcc1.*
}