From 1978d716a97547d2768dbf50438388e31b1acc5e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Volatier Date: Thu, 22 Jul 2021 12:34:46 +0300 Subject: gnu: openlibm: Fix cross-compiling. * gnu/packages/maths.scm (openlibm)[arguments]: Add configure-flag to use cc-for-target. Signed-off-by: Efraim Flashner --- gnu/packages/maths.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 05c92ce617..d4e3aca21e 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4198,7 +4198,8 @@ (define-public openlibm (build-system gnu-build-system) (arguments `(#:make-flags - (list (string-append "prefix=" (assoc-ref %outputs "out"))) + (list (string-append "prefix=" (assoc-ref %outputs "out")) + ,(string-append "CC=" (cc-for-target))) #:phases ;; no configure script (modify-phases %standard-phases (delete 'configure)) -- cgit v1.2.3