From 4442aa8780dfaf5d40dee63ffd0d61222ab73eb0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 19 Nov 2023 10:51:44 +0200 Subject: [PATCH] gnu: newsboat: Prepare for cross-building. * gnu/packages/syndication.scm (newsboat)[arguments]: Add a phase to use the correct compiler when cross-compiling. Change-Id: I1a560af41471cb8899322813f8a18c15ac0e5924 --- gnu/packages/syndication.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 5a9d5ed480..8f2882cff9 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -287,6 +287,14 @@ cards.") (("^doc:.*") "doc:\n") (("install-podboat install-docs") "install-podboat"))))) '()) + (add-after 'unpack 'pre-build + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CXX" ,(cxx-for-target)) + (setenv "CXX_FOR_BUILD" (which "g++")) + (substitute* "config.sh" + (("if curl-config") + (string-append + "if " (search-input-file inputs "/bin/curl-config")))))) (add-after 'configure 'dont-vendor-self (lambda* (#:key vendor-dir #:allow-other-keys) ;; Don't keep the whole tarball in the vendor directory