aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-19 10:50:47 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:40 +0200
commitbd90c7d462fcf426d77f4aceb3f64634b86e0596 (patch)
tree02f45a4b4afdcc10212ec3be541b7f317a8913b0
parentfb05c43a36d38c5dd4a0cd9e7fb8123ed6b7e6cf (diff)
downloadguix-bd90c7d462fcf426d77f4aceb3f64634b86e0596.tar.gz
guix-bd90c7d462fcf426d77f4aceb3f64634b86e0596.zip
gnu: stfl: Fix cross-building.
* gnu/packages/ncurses.scm (stfl)[arguments]: Add a make-flag to use the correct compiler when cross-compiling. Remove trailing #t from phases. Change-Id: I79aaf2472439b74e66e0e178f3d7f1bd2af62d7e
-rw-r--r--gnu/packages/ncurses.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm
index 3b2f9b15f9..c19fe6d990 100644
--- a/gnu/packages/ncurses.scm
+++ b/gnu/packages/ncurses.scm
@@ -330,8 +330,9 @@ of your system.")
"1460d5lc780p3q38l3wc9jfr2a7zlyrcra0li65aynj738cam9yl"))))
(build-system gnu-build-system)
(arguments
- '(#:tests? #f ; no test target
- #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
+ `(#:tests? #f ; no test target
+ #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
+ (string-append "CC=" ,(cc-for-target)))
#:phases
(modify-phases %standard-phases
(delete 'configure) ; there is no configure script
@@ -339,8 +340,7 @@ of your system.")
(add-before 'build 'patch-ncursesw
(lambda _
(substitute* "stfl_internals.h"
- (("ncursesw/") ""))
- #t))
+ (("ncursesw/") ""))))
(add-after 'install 'install-missing-symlink
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))