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
This commit is contained in:
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

View file

@ -1484,6 +1484,11 @@ (define-public abseil-cpp
(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