games-util/mangohud: add workaround for lld

It can now be built with stage3-llvm-openrc, at least.

Bug: https://bugs.gentoo.org/924681
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-09-18 19:22:23 +09:00
parent e3a01d58e0
commit ffa7459c01
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
2 changed files with 14 additions and 6 deletions

View File

@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1 meson-multilib
inherit flag-o-matic python-single-r1 meson-multilib
MY_PV=$(ver_cut 1-3)
[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
@ -73,8 +73,8 @@ RDEPEND="
)
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
mangoapp? (
>=media-libs/imgui-1.81[glfw]
media-libs/glfw[X]
=media-libs/imgui-1.89.9*[glfw]
media-libs/glfw[X(+)]
media-libs/glew
)
mangoplot? ( $(python_gen_cond_dep '
@ -113,6 +113,10 @@ src_prepare() {
}
multilib_src_configure() {
# workaround for lld
# https://github.com/flightlessmango/MangoHud/issues/1240
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
local emesonargs=(
-Dappend_libdir_mangohud=false
-Dinclude_doc=false

View File

@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1 meson-multilib
inherit flag-o-matic python-single-r1 meson-multilib
MY_PV=$(ver_cut 1-3)
[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
@ -73,8 +73,8 @@ RDEPEND="
)
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
mangoapp? (
>=media-libs/imgui-1.81[glfw]
media-libs/glfw[X]
=media-libs/imgui-1.89.9*[glfw]
media-libs/glfw[X(+)]
media-libs/glew
)
mangoplot? ( $(python_gen_cond_dep '
@ -113,6 +113,10 @@ src_prepare() {
}
multilib_src_configure() {
# workaround for lld
# https://github.com/flightlessmango/MangoHud/issues/1240
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
local emesonargs=(
-Dappend_libdir_mangohud=false
-Dinclude_doc=false