diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-11-29 18:45:26 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-11-29 18:45:26 +0100 |
commit | 16624f2296677fab05246465fb4079fccdbae741 (patch) | |
tree | 5c40f2cf13b03fed957790b99014966b5c40693d /core/pacman/PKGBUILD | |
parent | 6db5befdcbf114197861fe81d5b29abb3266104a (diff) | |
download | packages-16624f2296677fab05246465fb4079fccdbae741.tar.xz |
core/pacman: no -fcf-protection on i486 in makeflags
Diffstat (limited to 'core/pacman/PKGBUILD')
-rw-r--r-- | core/pacman/PKGBUILD | 14 |
1 files changed, 14 insertions, 0 deletions
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 |