From 69b445fb0adf73818e5d67f5cb6b32ff2bf90579 Mon Sep 17 00:00:00 2001 From: Yuan Liao Date: Mon, 4 Jul 2022 09:01:25 -0700 Subject: [PATCH] games-emulation/dosbox-x: Respect the 'AR' variable Closes: https://bugs.gentoo.org/856352 Signed-off-by: Yuan Liao --- games-emulation/dosbox-x/dosbox-x-0.84.1.ebuild | 7 ++++++- games-emulation/dosbox-x/dosbox-x-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/games-emulation/dosbox-x/dosbox-x-0.84.1.ebuild b/games-emulation/dosbox-x/dosbox-x-0.84.1.ebuild index 9db9689002..bc26e3bdbd 100644 --- a/games-emulation/dosbox-x/dosbox-x-0.84.1.ebuild +++ b/games-emulation/dosbox-x/dosbox-x-0.84.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools xdg +inherit autotools toolchain-funcs xdg if [[ "${PV}" == 9999 ]]; then inherit git-r3 @@ -146,6 +146,11 @@ src_configure() { econf "${myconf[@]}" } +src_compile() { + # https://bugs.gentoo.org/856352 + emake AR="$(tc-getAR)" +} + pkg_preinst() { xdg_pkg_preinst diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild b/games-emulation/dosbox-x/dosbox-x-9999.ebuild index f2da3a0e03..052e563f50 100644 --- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild +++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools xdg +inherit autotools toolchain-funcs xdg if [[ "${PV}" == 9999 ]]; then inherit git-r3 @@ -141,6 +141,11 @@ src_configure() { econf "${myconf[@]}" } +src_compile() { + # https://bugs.gentoo.org/856352 + emake AR="$(tc-getAR)" +} + pkg_preinst() { xdg_pkg_preinst