mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
gnu: mingetty: Fix cross-compilation.
* gnu/packages/admin.scm (mingetty)[arguments]: When cross-compiling, set CC to the appropriate value in configure phase.
This commit is contained in:
parent
0715e520ea
commit
ba0e14061a
1 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
||||||
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
|
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
|
||||||
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
|
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -520,13 +520,17 @@ (define-public mingetty
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs target #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(man8 (string-append out "/share/man/man8"))
|
(man8 (string-append out "/share/man/man8"))
|
||||||
(sbin (string-append out "/sbin"))
|
(sbin (string-append out "/sbin"))
|
||||||
(shadow (assoc-ref inputs "shadow"))
|
(shadow (assoc-ref inputs "shadow"))
|
||||||
(login (string-append shadow "/bin/login")))
|
(login (string-append shadow "/bin/login")))
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'((("CC=.*$")
|
||||||
|
(string-append "CC=" target "-gcc\n")))
|
||||||
|
'())
|
||||||
(("^SBINDIR.*")
|
(("^SBINDIR.*")
|
||||||
(string-append "SBINDIR = " out
|
(string-append "SBINDIR = " out
|
||||||
"/sbin\n"))
|
"/sbin\n"))
|
||||||
|
|
Loading…
Reference in a new issue