commit: 6a195fb3ef89176315f1bcbdb6ad0e296e94d055 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Tue Mar 5 01:10:53 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Mar 5 04:47:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a195fb3
media-libs/lsp-plugins: mark as LTO-unsafe Closes: https://bugs.gentoo.org/875833 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild | 13 ++++++++++++- media-libs/lsp-plugins/lsp-plugins-9999.ebuild | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild b/media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild index 020b5fd8f482..d8569e54fdd7 100644 --- a/media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild +++ b/media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2023 Gentoo Authors +# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -55,6 +55,17 @@ DEPEND=" RDEPEND="${DEPEND}" src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/875833 + # + # Actually the whole thing is kind of a waste of time. It looks like + # programs use LDFLAGS, but libraries do not! So some things don't + # build with LTO, while other things don't build when LTO is enabled. + # Attempting to build with LTO is just a waste of time and cycles. + # + # This was reported upstream but the ticket closed. Abandon hope. + filter-lto + use doc && MODULES+="doc" use jack && MODULES+=" jack" use ladspa && MODULES+=" ladspa" diff --git a/media-libs/lsp-plugins/lsp-plugins-9999.ebuild b/media-libs/lsp-plugins/lsp-plugins-9999.ebuild index 9d7901ffd074..0292665b83a8 100644 --- a/media-libs/lsp-plugins/lsp-plugins-9999.ebuild +++ b/media-libs/lsp-plugins/lsp-plugins-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2022 Gentoo Authors +# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -56,6 +56,17 @@ DEPEND=" RDEPEND="${DEPEND}" src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/875833 + # + # Actually the whole thing is kind of a waste of time. It looks like + # programs use LDFLAGS, but libraries do not! So some things don't + # build with LTO, while other things don't build when LTO is enabled. + # Attempting to build with LTO is just a waste of time and cycles. + # + # This was reported upstream but the ticket closed. Abandon hope. + filter-lto + use doc && MODULES+="doc" use jack && MODULES+=" jack" use ladspa && MODULES+=" ladspa"