gnu: openlibm: Fix cross-compiling.

* gnu/packages/maths.scm (openlibm)[arguments]: Add configure-flag to
use cc-for-target.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Jean-Baptiste Volatier 2021-07-22 12:34:46 +03:00 committed by Efraim Flashner
parent 4709b74bc8
commit 1978d716a9
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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))