From 16624f2296677fab05246465fb4079fccdbae741 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 29 Nov 2021 18:45:26 +0100 Subject: core/pacman: no -fcf-protection on i486 in makeflags --- core/pacman/PKGBUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/pacman/PKGBUILD') diff --git a/core/pacman/PKGBUILD b/core/pacman/PKGBUILD index 85a805de..001490a5 100644 --- a/core/pacman/PKGBUILD +++ b/core/pacman/PKGBUILD @@ -37,3 +37,17 @@ eval "$( patch -p1 -i ../replace-i686-by-pentium4-when-architecture-is-auto.patch ' )" + +# not supported on i486 -fcf-protection + +if [ ! "${CARCH}" = "i486" ]; then + eval "$( + { + declare -f package || \ + printf 'package() {\n}\n' + } \ + | sed ' + $i sed -i "s/-fcf-protection//g" "$pkgdir/etc/makepkg.conf" + ' + )" +fi -- cgit v1.2.3-70-g09d2