commit: 55795d1581fa3a3dff827600e61a0466f2c5913d
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Dec 28 01:34:49 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 02:18:23 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55795d15
dev-util/source-highlight: disallow building with LTO
It miscompiles with ODR violations. After elibtoolize, the build fails
with the recommended -Werror= flags for lto. Filter out -flto so that
users with global lto enabled don't miscompile source-highlight.
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild
b/dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild
index fb6cbdde1165..3a9b22fd5680 100644
--- a/dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild
+++ b/dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild
@@ -35,6 +35,8 @@ src_configure() {
# required as rev-dep of dev-libs/boost-1.62.0
# https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI
append-cxxflags -std=c++14
+ # ODR violations: https://savannah.gnu.org/bugs/index.php?65086
+ filter-lto
econf \
--with-boost="${EPREFIX}/usr" \