From 7dd57cc00e949dd414ed1c820d6452b2c9978184 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 3 Jun 2020 01:38:11 +0200 Subject: gnu: hdparm: Fix cross-compilation. * gnu/packages/linux.scm (hdparm)[arguments]: Use CC-FOR-TARGET. Don't strip the binary during the build phase. --- gnu/packages/linux.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gnu/packages/linux.scm') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index e60cc790e2..30420b013b 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -3821,10 +3821,13 @@ isolation or root privileges.") "03z1qm8zbgpxagk3994lvp24yqsshjibkwg05v9p3q1w7y48xrws")))) (build-system gnu-build-system) (arguments - `(#:make-flags (let ((out (assoc-ref %outputs "out"))) - (list (string-append "binprefix=" out) - (string-append "manprefix=" out) - "CC=gcc")) + `(#:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list (string-append "binprefix=" out) + (string-append "manprefix=" out) + ,(string-append "CC=" (cc-for-target)) + ;; Let Guix strip the binaries and not break cross-compilation. + "STRIP=true")) #:phases (modify-phases %standard-phases (delete 'configure)) ; no configure script -- cgit v1.2.3