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:
parent
02406d5c51
commit
ae144ec797
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,7 @@ Shell (pdksh).")
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(setenv "CC" "gcc")
|
(setenv "CC" ,(cc-for-target))
|
||||||
(substitute* "configure"
|
(substitute* "configure"
|
||||||
((" cc ") " $CC "))
|
((" cc ") " $CC "))
|
||||||
(invoke "./configure" (string-append "--prefix=" out)
|
(invoke "./configure" (string-append "--prefix=" out)
|
||||||
|
|
Reference in a new issue