net-news/newsraft: fix tests not having correct $CC value

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier committed 2025-11-29 15:34:14 +01:00
1 parent acb8809c49
commit df84de8f90
2 files changed
+18 -4

No files matched your search

+9 -2
View File
@@ -1,4 +1,4 @@
# Copyright 2024 Gentoo Authors
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -32,8 +32,15 @@ BDEPEND="
virtual/pkgconfig
"
src_prepare() {
default
sed -i -e '/CC *=/s;=;?=;' makefile || die
}
src_compile(){
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
tc-export CC
emake LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
}
src_install() {
+9 -2
View File
@@ -1,4 +1,4 @@
# Copyright 2024 Gentoo Authors
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -32,8 +32,15 @@ BDEPEND="
virtual/pkgconfig
"
src_prepare() {
default
sed -i -e '/CC *=/s;=;?=;' makefile || die
}
src_compile(){
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
tc-export CC
emake LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
}
src_install() {