dev-lang/harec-9999: Use ?= for CC/AS/LD values

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier 2024-01-19 18:45:24 +01:00
parent 05a1bcdeef
commit 6d40e4a703
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View File

@ -3,6 +3,8 @@
EAPI=8 EAPI=8
inherit toolchain-funcs
if [[ "${PV}" = "9999" ]]; then if [[ "${PV}" = "9999" ]]; then
inherit git-r3 inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/harec" EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/harec"
@ -27,7 +29,14 @@ src_prepare() {
default default
cp configs/linux.mk config.mk || die cp configs/linux.mk config.mk || die
sed -i 's/-Werror//' config.mk || die sed -i \
-e 's/-Werror//' \
-e 's/CC =/CC ?=/' \
-e 's/AS =/AS ?=/' \
-e 's/LD =/LD ?=/' \
config.mk || die
tc-export CC AS LD
} }
src_install() { src_install() {