diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-05-22 16:24:03 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-05-23 08:56:41 +0300 |
commit | aeba4849b42b4d3ac75341ac4b61843c1fe48181 (patch) | |
tree | ead19df484c3e4a2d55194ca72e39601aa4786bd | |
parent | 28b336d02e008fabb6b98d791fbc87a9a0e12cb1 (diff) | |
download | guix-aeba4849b42b4d3ac75341ac4b61843c1fe48181.tar.gz guix-aeba4849b42b4d3ac75341ac4b61843c1fe48181.zip |
gnu: abseil-cpp: Fix linking on riscv64-linux.
* gnu/packages/cpp.scm (abseil-cpp)[arguments]: When building for
riscv64-linux adjust the configure-flags to link with latomic.
Change-Id: I12099d1a99b54f20f7ddbba2fbd495379a05476b
-rw-r--r-- | gnu/packages/cpp.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index e96a354551..03a8a39ee2 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1484,6 +1484,11 @@ Google's C++ code base.") (search-patches "abseil-cpp-20220623.1-no-kepsilon-i686.patch")))) (arguments (substitute-keyword-arguments (package-arguments base) + ((#:configure-flags flags #~'()) + (if (target-riscv64?) + #~(cons* "-DCMAKE_SHARED_LINKER_FLAGS=-latomic" + #$flags) + flags)) ((#:phases phases) #~(modify-phases #$phases (add-before 'check 'set-env-vars |