commit: 9b0d147c296144236fa653145ac454130586d594
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 13 05:23:45 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 13 18:26:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b0d147c
sys-libs/glibc: filter -fsanitize=*
Just like with gcc.
(noticed when had CFLAGS set in env accidentally)
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-libs/glibc/glibc-9999.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 0ccad6a681c1..07bdba5ad0ed 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -429,8 +429,13 @@ setup_flags() {
# include/libc-symbols.h:75:3: #error "glibc cannot be compiled
without optimization"
replace-flags -O0 -O1
+ # glibc handles this internally already where it's appropriate;
+ # can't always have SSP when we're the ones setting it up, etc
filter-flags '-fstack-protector*'
+ # Similar issues as with SSP. Can't inject yourself that early.
+ filter-flags '-fsanitize=*'
+
# See end of bug #830454; we handle this via USE=cet
filter-flags '-fcf-protection='
}