From bc63198830e7054d3cf62a978b0d133896600b84 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 16 Nov 2020 11:04:35 +0200 Subject: gnu: cpulimit: Cross compile. * gnu/packages/admin.scm (cpulimit)[arguments]: Use cc-for-target in custom 'build and 'check phases. --- gnu/packages/admin.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 8db547bb76..df98bd2fa8 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2384,10 +2384,10 @@ (define-public cpulimit (delete 'configure) (replace 'build (lambda _ - (invoke "make" "CC=gcc" "-Csrc"))) + (invoke "make" (string-append "CC=" ,(cc-for-target)) "-Csrc"))) (replace 'check (lambda _ - (invoke "make" "CC=gcc" "-Ctests"))) + (invoke "make" (string-append "CC=" ,(cc-for-target)) "-Ctests"))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- cgit v1.2.3