commit: 6ada69a5bb8289f32d04b3eeaf354b2e089692b5
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 25 08:53:05 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 25 08:54:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ada69a5
dev-debug/valgrind: stop filtering LTO
mjw pointed out that Valgrind has a --enable-lto configure arg but it also
seems to work well nowadays. Valgrind is a special-case so use it.
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild | 3 ++-
dev-debug/valgrind/valgrind-9999.ebuild | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
@@ -75,6 +75,8 @@ src_configure() {
--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
)
+ tc-is-lto && myconf+=( --enable-lto )
+
# Respect ar, bug #468114
tc-export AR
@@ -87,7 +89,6 @@ src_configure() {
# -fstack-protector-strong See -fstack-protector (bug #620402)
# -m64 -mx32 for multilib-portage, bug #398825
# -fharden-control-flow-redundancy: breaks runtime ('jump to the
invalid address stated on the next line')
- # -flto* fails to build, bug #858509
filter-flags -fomit-frame-pointer
filter-flags -fstack-protector
filter-flags -fstack-protector-all
diff --git a/dev-debug/valgrind/valgrind-9999.ebuild
b/dev-debug/valgrind/valgrind-9999.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-9999.ebuild
+++ b/dev-debug/valgrind/valgrind-9999.ebuild
@@ -75,6 +75,8 @@ src_configure() {
--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
)
+ tc-is-lto && myconf+=( --enable-lto )
+
# Respect ar, bug #468114
tc-export AR
@@ -87,7 +89,6 @@ src_configure() {
# -fstack-protector-strong See -fstack-protector (bug #620402)
# -m64 -mx32 for multilib-portage, bug #398825
# -fharden-control-flow-redundancy: breaks runtime ('jump to the
invalid address stated on the next line')
- # -flto* fails to build, bug #858509
filter-flags -fomit-frame-pointer
filter-flags -fstack-protector
filter-flags -fstack-protector-all