llvm-runtimes/libatomic-stub - 0 (gentoo)

Search

Install

Install this version:

emerge -a =llvm-runtimes/libatomic-stub-0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =llvm-runtimes/libatomic-stub-0

Or alternatively:

emerge --autounmask-write -a =llvm-runtimes/libatomic-stub-0

Package Information

Description:
Stub library which allows compiler-rt to replace libatomic
Homepage:
https://wiki.gentoo.org/wiki/No_homepage
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0 8 amd64 0
View Raw Ebuild
# 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
}

Inherited Eclasses

Dependencies

RDEPEND

	llvm-runtimes/compiler-rt[atomic-builtins(-)]
	!sys-devel/gcc