diff --git a/x11-libs/pixman/pixman-0.46.0.ebuild b/x11-libs/pixman/pixman-0.46.0.ebuild index fa5ecac0c222a..8cac0712d62c4 100644 --- a/x11-libs/pixman/pixman-0.46.0.ebuild +++ b/x11-libs/pixman/pixman-0.46.0.ebuild @@ -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) diff --git a/x11-libs/pixman/pixman-9999.ebuild b/x11-libs/pixman/pixman-9999.ebuild index fa5ecac0c222a..8cac0712d62c4 100644 --- a/x11-libs/pixman/pixman-9999.ebuild +++ b/x11-libs/pixman/pixman-9999.ebuild @@ -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)