| 1 |
From: YOKOTA Hiroshi <[email protected]> |
| 2 |
Date: Fri, 2 Aug 2024 08:28:29 +0900 |
| 3 |
Subject: Some architecture requires additional library (Closes: #1069534) |
| 4 |
|
| 5 |
Bug-Debian: https://bugs.debian.org/1069534 |
| 6 |
|
| 7 |
* __atomic_compare_exchange_8 |
| 8 |
* __atomic_load_8 |
| 9 |
* __atomic_store_8 |
| 10 |
|
| 11 |
See also: |
| 12 |
Bug 81358 - libatomic not automatically linked with C11 code |
| 13 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358 |
| 14 |
--- |
| 15 |
src/test/CMakeLists.txt | 1 + |
| 16 |
1 file changed, 1 insertion(+) |
| 17 |
|
| 18 |
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt |
| 19 |
index 27ce373..afff2c4 100644 |
| 20 |
--- a/src/test/CMakeLists.txt |
| 21 |
+++ b/src/test/CMakeLists.txt |
| 22 |
@@ -55,6 +55,7 @@ else() |
| 23 |
endif() |
| 24 |
add_compile_options(-fsanitize=undefined -fsanitize=address) |
| 25 |
add_link_options(-fsanitize=undefined -fsanitize=address) |
| 26 |
+ link_libraries(-latomic) |
| 27 |
endif() |
| 28 |
|
| 29 |
if (CMAKE_SIZEOF_VOID_P EQUAL 8) |