commit:     a389baf98dd67ea9b1f22acb2aa227543ff88e9d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 10 10:54:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 10:54:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a389baf9

sys-libs/glibc: add filter-flags for CET to 2.34-r10 too

May as well add it to the stable one as lots of people seem
to be shoving this in CFLAGS in make.conf now and don't
want more dupes.

See 256df48ff6e85ffa389cc2d25453d100279b62fe for more
background.

Bug: https://bugs.gentoo.org/830454
See: 256df48ff6e85ffa389cc2d25453d100279b62fe
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/glibc/glibc-2.34-r10.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-libs/glibc/glibc-2.34-r10.ebuild 
b/sys-libs/glibc/glibc-2.34-r10.ebuild
index 0bc6be3e278b..e607faf13339 100644
--- a/sys-libs/glibc/glibc-2.34-r10.ebuild
+++ b/sys-libs/glibc/glibc-2.34-r10.ebuild
@@ -440,6 +440,9 @@ setup_flags() {
        replace-flags -O0 -O1
 
        filter-flags '-fstack-protector*'
+
+       # See end of bug #830454; we handle this via USE=cet
+       filter-flags '-fcf-protection='
 }
 
 use_multiarch() {

Reply via email to