From cf2115b7cc4008f1720c18ab54fc90c37a513b8a Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Thu, 30 May 2024 15:43:15 -0300 Subject: [PATCH] Update to GCC 14.1.0 --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 91abbe2..786217f 100644 --- a/build.sh +++ b/build.sh @@ -35,8 +35,8 @@ function setup_gcc_source() { if [ "${tgt}" = 'powerpc64le-unknown-linux-musl' ]; then gcc_version='13' - gcc_directory='/tmp/gcc-13.2.0' - gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz' + gcc_directory='/tmp/gcc-13.3.0' + gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-13.3.0/gcc-13.3.0.tar.xz' else gcc_version='14' gcc_directory='/tmp/gcc-14.1.0' @@ -56,6 +56,8 @@ function setup_gcc_source() { [ -d "${gcc_directory}/build" ] || mkdir "${gcc_directory}/build" + sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h" + } declare -r optflags='-Os' @@ -107,8 +109,6 @@ if ! [ -f "${binutils_tarball}" ]; then patch --directory="${binutils_directory}" --strip='1' --input="${workdir}/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch" fi -# sed --in-place 's/LDBL_MANT_DIG == 106/defined(__powerpc64__)/g' "${gcc_directory}/libgcc/dfp-bit.h" - [ -d "${gmp_directory}/build" ] || mkdir "${gmp_directory}/build" cd "${gmp_directory}/build"