gnu: corkscrew: Pass triplet instead of system as --build and --host.

This is a followup to commit 3c7d023d64,
"build-system/gnu: Pass --build=<triplet> to configure by default"

* gnu/packages/ssh.scm (corkscrew)[arguments]: In custom configure phase,
  accept 'build' keyword argument and pass it to configure in --build argument
  and, if not cross-compiling, the --host argument.  Previously, the nix
  system string was passed.
This commit is contained in:
Mark H Weaver 2015-07-13 19:05:17 -04:00
parent 412a242258
commit 7a34576206
1 changed files with 3 additions and 4 deletions

View File

@ -260,7 +260,7 @@ libssh library.")
'(#:phases
(alist-replace
'configure
(lambda* (#:key outputs inputs system target
(lambda* (#:key outputs inputs system build target
#:allow-other-keys #:rest args)
(let* ((configure (assoc-ref %standard-phases 'configure))
(prefix (assoc-ref outputs "out"))
@ -268,9 +268,8 @@ libssh library.")
;; Set --build and --host flags as the provided config.guess
;; is not able to detect them
(flags `(,(string-append "--prefix=" prefix)
,(string-append "--build=" system)
,(string-append "--host="
(or target system)))))
,(string-append "--build=" build)
,(string-append "--host=" (or target build)))))
(setenv "CONFIG_SHELL" bash)
(zero? (apply system* bash
(string-append "." "/configure")