gnu: oil: Don't hardcode gcc.

* gnu/packages/shells.scm (oil)[arguments]: In custom 'configure phase
use cc-for-target instead of hardcoding gcc.
This commit is contained in:
Efraim Flashner 2020-09-20 23:40:46 +03:00
parent 02406d5c51
commit ae144ec797
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -829,7 +829,7 @@ (define-public oil
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(setenv "CC" "gcc")
(setenv "CC" ,(cc-for-target))
(substitute* "configure"
((" cc ") " $CC "))
(invoke "./configure" (string-append "--prefix=" out)