mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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:
parent
28b336d02e
commit
aeba4849b4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue