1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Alec Leamas <leamas.alec@gmail.com>
Date: Fri, 16 Aug 2024 20:26:11 +0200
Subject: build: add -latomic linkage
Fix armel build.
Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 651e654..ce6a11d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -358,6 +358,7 @@ endif ()
# -march=native"
if (NOT WIN32 AND NOT APPLE)
add_compile_options("-Wall")
+ link_libraries(atomic)
if (NOT OCPN_PEDANTIC)
add_compile_options(
"-Wno-unused" "-fexceptions" "-rdynamic" "-fno-strict-aliasing"
|