x11-libs/pixman: filter LTO on riscv

There is a known issue in GCC causing build failures in this package on
riscv when LTO is enabled. This commit temporary disables LTO on riscv.

Closes: https://bugs.gentoo.org/956715
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2025-05-27 18:42:22 -04:00
parent cd84427a1b
commit a428b11e4c
2 changed files with 16 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
inherit ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs
inherit flag-o-matic ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
@@ -32,6 +32,13 @@ pkg_setup() {
}
multilib_src_configure() {
# Temporary workaround for a build failure (known gcc issue):
#
# * https://bugs.gentoo.org/956715
# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
#
use riscv && filter-lto
local emesonargs=(
$(meson_feature cpu_flags_x86_mmxext mmx)
$(meson_feature cpu_flags_x86_sse2 sse2)

View File

@@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
inherit ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs
inherit flag-o-matic ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
@@ -32,6 +32,13 @@ pkg_setup() {
}
multilib_src_configure() {
# Temporary workaround for a build failure (known gcc issue):
#
# * https://bugs.gentoo.org/956715
# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
#
use riscv && filter-lto
local emesonargs=(
$(meson_feature cpu_flags_x86_mmxext mmx)
$(meson_feature cpu_flags_x86_sse2 sse2)