mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-lang/hare: tc-export CC AR AS LD
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user