diff --git a/llvm-runtimes/libatomic-stub/libatomic-stub-0.ebuild b/llvm-runtimes/libatomic-stub/libatomic-stub-0.ebuild index 0867f006c8023..db55c45383067 100644 --- a/llvm-runtimes/libatomic-stub/libatomic-stub-0.ebuild +++ b/llvm-runtimes/libatomic-stub/libatomic-stub-0.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="Stub library which allows compiler-rt to replace libatomic" HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" S="${WORKDIR}" @@ -20,6 +22,6 @@ src_install() { # Create an empty library, so that -latomic will not fail. # The atomic routines will be provided implicitly by the compiler-rt # builtins library. - ${AR} rc libatomic.a || die + $(tc-getAR) rc libatomic.a || die dolib.a libatomic.a }