gnu: numactl: Fix building on riscv64-linux.

* gnu/packages/linux.scm (numactl)[arguments]: When building for
riscv64-linux always link with libatomic.
This commit is contained in:
Efraim Flashner 2022-07-12 16:56:28 +03:00
parent 321bb9f0e9
commit 706af6dfd7
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3537,7 +3537,10 @@ (define-public numactl
"1xngddsph43bxljywahi9d44fxr022slsap4hh91w8xnq54d2sw2")))) "1xngddsph43bxljywahi9d44fxr022slsap4hh91w8xnq54d2sw2"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(;; There's a 'test' target, but it requires NUMA support in the kernel `(,@(if (target-riscv64?)
`(#:make-flags (list "LDFLAGS=-latomic"))
'())
;; There's a 'test' target, but it requires NUMA support in the kernel
;; to run, which we can't assume to have. ;; to run, which we can't assume to have.
#:tests? #f)) #:tests? #f))