summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-05-30 11:15:54 +0300
committerJohn Kehayias <john.kehayias@protonmail.com>2025-06-08 15:35:38 -0400
commitc072428ed778944e5fea240e16b6b448e21eb336 (patch)
tree85e5d65d088d2a615ff6a4c955ecdc7717131dcd
parentd0c1c5b9ac1c2e85cdb38d57031ad0aa09e49bd9 (diff)
gnu: cppdap: Fix build on riscv64-linux.
* gnu/packages/debug.scm (cppdap)[arguments]: When building for riscv64-linux add a configure-flag to link with latomic. Change-Id: I1ff388ac5551270b8c12fa6a62231a86200e024a
-rw-r--r--gnu/packages/debug.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 3e86564e18..d558cbd503 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017, 2019-2022 Eric Bavier <bavier@posteo.net>
-;;; Copyright © 2016, 2017, 2018, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016-2018, 2020, 2021, 2025 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2019 Pkill -9 <pkill9@runbox.com>
@@ -220,7 +220,10 @@ tools that process C/C++ code.")
;; Only one of the following three can be enabled at the same time
;; "-DCPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE=ON"
;; "-DCPPDAP_USE_EXTERNAL_JSONCPP_PACKAGE=ON"
- "-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON")))
+ "-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON"
+ #$@(if (target-riscv64?)
+ '("-DCMAKE_EXE_LINKER_FLAGS=-latomic")
+ '()))))
(native-inputs
(list googletest))
;; see lib/cmake/cppdap/cppdapConfig.cmake