media-libs/lsp-plugins: backport LTO filtering

Bug: https://bugs.gentoo.org/875833
Closes: https://bugs.gentoo.org/874339
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-03-15 02:53:10 +00:00
parent f33a8e2902
commit 2e1a176311
3 changed files with 33 additions and 0 deletions

View File

@@ -59,6 +59,17 @@ PATCHES=(
)
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"

View File

@@ -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"

View File

@@ -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"