gnu: lsof: Cross-compile.

* gnu/packages/lsof.scm (lsof)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2020-11-23 05:09:53 +01:00
parent 2bf502138c
commit f942c09b66
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -24,6 +24,7 @@ (define-module (gnu packages lsof)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages groff)
#:use-module (gnu packages perl))
@ -51,7 +52,7 @@ (define-public lsof
(modify-phases %standard-phases
(replace 'configure
(lambda _
(setenv "LSOF_CC" "gcc")
(setenv "LSOF_CC" ,(cc-for-target))
(setenv "LSOF_MAKE" "make")
;; By default, the makefile captures the output of 'uname -a'.