commit: 95b5bf83b726413ebbe2dbe5374c1f79e0526471 Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de> AuthorDate: Mon May 25 15:49:30 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Thu Jun 25 08:07:43 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b5bf83
dev-util/rt-tests: Allow to use different compilers Currently CC and AR are hardcoded to gcc/ar. Allow compilation e.g. with clang. Closes: https://bugs.gentoo.org/724246 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de> Closes: https://github.com/gentoo/gentoo/pull/15962 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-util/rt-tests/rt-tests-1.8.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-util/rt-tests/rt-tests-1.8.ebuild b/dev-util/rt-tests/rt-tests-1.8.ebuild index 994e2f56115..f94e433d66c 100644 --- a/dev-util/rt-tests/rt-tests-1.8.ebuild +++ b/dev-util/rt-tests/rt-tests-1.8.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6..8} ) -inherit python-single-r1 +inherit python-single-r1 toolchain-funcs DESCRIPTION="A collection of latency testing tools for the linux(-rt) kernel" HOMEPAGE="https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/about/" @@ -27,6 +27,10 @@ src_prepare() { use elibc_musl && eapply "${FILESDIR}/${P}-musl.patch" } +src_compile() { + emake CC="$(tc-getCC)" AR="$(tc-getAR)" +} + src_install() { emake prefix=/usr DESTDIR="${D}" MAN_COMPRESSION=none install python_fix_shebang "${ED}"