media-sound/liblc3: respect CC for tests

Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
Closes: https://github.com/gentoo/gentoo/pull/37167
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Leonardo Hernández Hernández
2024-06-14 23:12:13 -06:00
committed by Sam James
parent 5be154aba7
commit f2e36b71c0

View File

@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit python-any-r1 meson-multilib
inherit python-any-r1 toolchain-funcs meson-multilib
DESCRIPTION="LC3 is an efficient low latency audio codec"
HOMEPAGE="https://github.com/google/liblc3"
@@ -50,7 +50,8 @@ multilib_src_configure() {
multilib_src_test() {
if multilib_is_native_abi; then
V= emake -C "${S}" test CFLAGS:="${CPPFLAGS} ${CFLAGS} -I"$("${EPYTHON}" -c "import numpy;print(numpy.get_include())")""
V= emake -C "${S}" test CC="$(tc-getCC)" \
CFLAGS:="${CPPFLAGS} ${CFLAGS} -I"$("${EPYTHON}" -c "import numpy;print(numpy.get_include())")""
else
ewarn "Skipping test for non-native ABI: ${ABI}"
fi