mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
llvm-runtimes/libatomic-stub: use tc-getAR
Nothing guarantees AR is set. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
2b3a5b4caa
commit
9b854af3d8
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user