diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,9 +1,9 @@ # Maintainer: Joey Dumont <joey.dumont@gmail.com> _target=mips64-ultra-elf pkgname=${_target}-gcc-stage1 -_gccver=12.2.0 +_gccver=13.2.0 _islver=0.24 -pkgver=12.2.0_r171.c378110 +pkgver=13.2.0_r172.97ae725 pkgrel=1 pkgdesc="The GNU Compiler Collection. Stage 1 for toolchain building (${_target})" arch=('x86_64') @@ -16,11 +16,11 @@ options=(!emptydirs) source=("http://gcc.gnu.org/pub/gcc/releases/gcc-${_gccver}/gcc-${_gccver}.tar.xz" "https://gcc.gnu.org/pub/gcc/infrastructure/isl-${_islver}.tar.bz2" "git+https://github.com/glankk/n64.git#branch=n64-ultra" - "gcc11-Wno-format-security.patch") -sha256sums=('e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff' + "gcc13-Wno-format-security.patch") +sha256sums=('e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da' 'fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0' 'SKIP' - 'e388ee3f6871034ac021b0711f58f278c97eb1e749b466f896ae3dd35b165219') + '75bcf36e10fd50f7b21d80db4fcc9b58d2c658f2c749b7cf2f9369b31f147a6d') pkgver() { cd "${srcdir}/n64/" @@ -39,7 +39,7 @@ prepare() { sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure # -- Patch Werror=format-security issues. - patch --strip=1 --input="$srcdir"/gcc11-Wno-format-security.patch + patch --strip=1 --input="$srcdir"/gcc13-Wno-format-security.patch mkdir "${srcdir}"/build-gcc @@ -55,6 +55,8 @@ prepare() { build() { cd build-gcc + export CFLAGS="$CFLAGS -Wno-format-security" + export CXXFLAGS="$CXXFLAGS -Wno-format-security" export CFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections" export CXXFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections" @@ -106,7 +108,7 @@ package() { make DESTDIR="${pkgdir}" install # strip target binaries - find "$pkgdir"/usr/${_target}/lib/gcc/$_target/${_gccver} -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/${_target}/lib/gcc/$_target/${_gccver} -type f -and \( -executable \) -exec strip '{}' \; |