summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormojyack <mojyack@gmail.com>2024-11-09 13:27:01 +0900
committerMichał Górny <mgorny@gentoo.org>2024-11-09 11:14:13 +0100
commit63b4ae7aaa6e520706e1237b649d8fe29f5aba83 (patch)
tree48bbf69d3be9e88c7d6401eca59d1373d50b0616 /app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.9.0-r1.ebuild
parentgnome-base/librsvg: add 2.58.5 (diff)
downloadgentoo-63b4ae7aaa6e520706e1237b649d8fe29f5aba83.tar.gz
gentoo-63b4ae7aaa6e520706e1237b649d8fe29f5aba83.tar.bz2
gentoo-63b4ae7aaa6e520706e1237b649d8fe29f5aba83.zip
sys-libs/compiler-rt: enable atomic builtin
Several packages depend on GCC's libatomic to perform atomic operations. For example, this compiles without -latomic: ```c _Atomic struct { int v[1]; } a; atomic_store(&a, a); ``` But this fails with error "undefined reference to __atomic_store_16" without -latomic: ```c _Atomic struct { int v[4]; } b; atomic_store(&b, b); ``` LLVM does not have a libatomic.so, but an atomic builtin to support such operations. However, it is disabled by default to allow use of system libatomic while using LLVM as a compiler. Pure LLVM environments without GCC installed require this builtin. This commit adds `-DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=OFF` cmake option to enable the builtin. Bug: https://bugs.gentoo.org/911340 Signed-off-by: mojyack <mojyack@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39168 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.9.0-r1.ebuild')
0 files changed, 0 insertions, 0 deletions