commit:     f5c6d1a0307edb48ce6241aaac659946edf345ba
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  1 02:57:45 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Aug  1 03:14:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5c6d1a0

dev-cpp/ctemplate: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/924637
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-cpp/ctemplate/ctemplate-2.4.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/ctemplate/ctemplate-2.4.ebuild 
b/dev-cpp/ctemplate/ctemplate-2.4.ebuild
index 1028e3972a78..4cbee4fbcc2e 100644
--- a/dev-cpp/ctemplate/ctemplate-2.4.ebuild
+++ b/dev-cpp/ctemplate/ctemplate-2.4.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
 
-inherit autotools elisp-common python-any-r1
+inherit autotools elisp-common flag-o-matic python-any-r1
 
 DESCRIPTION="A simple but powerful template language for C++"
 HOMEPAGE="https://github.com/olafvdspek/ctemplate";
@@ -33,6 +33,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/924637
+       # https://github.com/OlafvdSpek/ctemplate/issues/157
+       filter-lto
+
        econf $(use_enable static-libs static)
 }
 

Reply via email to