diff --git a/dev-lang/hare/hare-0.26.0.ebuild b/dev-lang/hare/hare-0.26.0.ebuild index 79c832cbae..a72ca8eff0 100644 --- a/dev-lang/hare/hare-0.26.0.ebuild +++ b/dev-lang/hare/hare-0.26.0.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + if [[ "${PV}" = 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare" @@ -45,10 +47,12 @@ src_configure() { sed -i \ -e "s;^ARCH =.*;ARCH = ${target_arch};" \ -e "s;^PREFIX =.*;PREFIX = ${EPREFIX}/usr;" \ + -e 's;^AR =;AR ?=;' \ -e 's;^AS =;AS ?=;' \ -e 's;^LD =;LD ?=;' \ - -e 's;^AR =;AR ?=;' \ config.mk || die + + tc-export CC AR AS LD } src_install() { diff --git a/dev-lang/hare/hare-9999.ebuild b/dev-lang/hare/hare-9999.ebuild index cbb5e57d29..ade71cc1de 100644 --- a/dev-lang/hare/hare-9999.ebuild +++ b/dev-lang/hare/hare-9999.ebuild @@ -1,8 +1,10 @@ -# Copyright 2021-2024 Gentoo Authors +# Copyright 2021-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +inherit toolchain-funcs + if [[ "${PV}" = 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare" @@ -45,10 +47,12 @@ src_configure() { sed -i \ -e "s;^ARCH =.*;ARCH = ${target_arch};" \ -e "s;^PREFIX =.*;PREFIX = ${EPREFIX}/usr;" \ + -e 's;^AR =;AR ?=;' \ -e 's;^AS =;AS ?=;' \ -e 's;^LD =;LD ?=;' \ - -e 's;^AR =;AR ?=;' \ config.mk || die + + tc-export CC AR AS LD } src_install() {