Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/gcc
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-02-06 20:17:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2024-02-06 20:17:06 +0100
commit5f45a2e3b01b22d29117cc509b79171983b55ff1 (patch)
treef2da4a99afa1bf574edd3d16166b102393638b4f /core/gcc
parent0cd74f3c9084eac17b3168907d0783707c1308f7 (diff)
core/gcc: disable CET on all subarchs
Diffstat (limited to 'core/gcc')
-rw-r--r--core/gcc/PKGBUILD26
1 files changed, 8 insertions, 18 deletions
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD
index acadfc94..ca003988 100644
--- a/core/gcc/PKGBUILD
+++ b/core/gcc/PKGBUILD
@@ -88,24 +88,6 @@ if [ "${CARCH}" = "i486" ]; then
'
)"
- # disable CET (Control Flow instructions endbr32/enbr64)
- eval "$(
- declare -f build | \
- sed '
- s/--enable-cet=auto/--disable-cet/
- '
- )"
-
-else
-
- # force enable CET (Control Flow instructions endbr32/enbr64)
- eval "$(
- declare -f build | \
- sed '
- s/--enable-cet=auto/--enable-cet/
- '
- )"
-
fi
makedepends=(${makedepends[@]//lib32-glibc/})
@@ -133,3 +115,11 @@ fi
if [ "${CARCH}" = "i486" ]; then
unset check
fi
+
+# disable CET on all subarchitectures (Control Flow instructions endbr32/enbr64)
+eval "$(
+ declare -f build | \
+ sed '
+ s/--enable-cet=auto/--disable-cet/
+ '
+)"