me
/
guix
Archived
1
0
Fork 0

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
master
Efraim Flashner 2024-05-22 16:24:03 +03:00
parent 28b336d02e
commit aeba4849b4
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 0 deletions

View File

@ -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