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