Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gcc/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-02 19:39:36 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-02 19:39:36 +0000
commit9e5ade11313636f9510ecc3bf06190beaba1446b (patch)
treee7069245eb1d97d79dbd8e7ad3a5d596b8a2ce7b /core/gcc/PKGBUILD
parent5affab6a8842e012e875f1a569ad9208299fb082 (diff)
core/gcc: disabled CET for i486
Diffstat (limited to 'core/gcc/PKGBUILD')
-rw-r--r--core/gcc/PKGBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD
index 0fe8efff..73360a5e 100644
--- a/core/gcc/PKGBUILD
+++ b/core/gcc/PKGBUILD
@@ -107,6 +107,14 @@ if [ "${CARCH}" = "i486" ]; then
'
)"
+ # disable CET (Control Flow instructions endbr32/enbr64)
+ eval "$(
+ declare -f build | \
+ sed '
+ s/--enable-cet=auto/--disable-cet/
+ '
+ )"
+
fi