gnu: psmisc: Fix cross-compilation.

* gnu/packages/linux.scm (psmisc)[arguments]: Pass
ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes options
that are required when cross-compiling.
This commit is contained in:
Mathieu Othacehe 2019-12-16 16:41:01 +01:00
parent 88ca4029a6
commit 46429444d6
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -1078,6 +1078,13 @@ (define-public psmisc
(sha256 (sha256
(base32 "16i7qzjmm6g0lzha8yzpfrlcxnvkgh95hkq9gdjd4zmzb8d0wxa1")))) (base32 "16i7qzjmm6g0lzha8yzpfrlcxnvkgh95hkq9gdjd4zmzb8d0wxa1"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
`(,@(if (%current-target-system)
'(#:configure-flags
(list
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"))
'())))
(inputs `(("ncurses" ,ncurses))) (inputs `(("ncurses" ,ncurses)))
(home-page "https://gitlab.com/psmisc/psmisc") (home-page "https://gitlab.com/psmisc/psmisc")
(synopsis "Small utilities that use the proc file system") (synopsis "Small utilities that use the proc file system")