File: 0005-build-add-latomic-linkage.patch

package info (click to toggle)
opencpn 1%3A5.12.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 166,736 kB
  • sloc: ansic: 521,943; cpp: 368,070; xml: 84,150; sh: 5,419; python: 1,833; makefile: 103; perl: 83; javascript: 65; cs: 65; ruby: 21
file content (23 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (3)
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"