From 4855c8fb13377cff63e5a83bec409dce8916e420 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 18 Feb 2022 20:17:00 +0100 Subject: core/gcc: disable LTO/PGO on i486 --- core/gcc/PKGBUILD | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index ed5410b9..b27a142c 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -114,5 +114,17 @@ source[1]='isl-0.24.tar.xz::https://downloads.sourceforge.net/project/libisl/isl makedepends=(${makedepends[@]//lib32-glibc/}) makedepends=(${makedepends[@]//lib32-gcc-libs/}) +# i486-specific: disable PGO/LTO build, uses too much resources, +# also disabling LTO for now +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + s/--enable-pgo-build=.*/--disable-pgo-build/ + s/--enable-lto/--disable-lto/ + ' + )" +fi + # no testing for now unset check -- cgit v1.2.3-70-g09d2