summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-12-27 20:34:49 -0500
committerSam James <sam@gentoo.org>2023-12-28 02:18:23 +0000
commit55795d1581fa3a3dff827600e61a0466f2c5913d (patch)
tree6f4083dcf9cc611a2cf2ec89be0fe57e025d6d38 /dev-util/source-highlight
parentdev-util/source-highlight: apply elibtoolize to old distributed libtool (diff)
downloadgentoo-55795d1581fa3a3dff827600e61a0466f2c5913d.tar.gz
gentoo-55795d1581fa3a3dff827600e61a0466f2c5913d.tar.bz2
gentoo-55795d1581fa3a3dff827600e61a0466f2c5913d.zip
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@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/source-highlight')
-rw-r--r--dev-util/source-highlight/source-highlight-3.1.9-r2.ebuild2
1 files changed, 2 insertions, 0 deletions
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" \