blob: db55c4538306722df78cab024bab71f3a1174621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
RDEPEND="
llvm-runtimes/compiler-rt[atomic-builtins(-)]
!sys-devel/gcc
"
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.
$(tc-getAR) rc libatomic.a || die
dolib.a libatomic.a
}
|