guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#74838] [PATCH 2/2] gnu: nvi: Fix cross-compilation.


From: Herman Rimm
Subject: [bug#74838] [PATCH 2/2] gnu: nvi: Fix cross-compilation.
Date: Thu, 12 Dec 2024 21:31:09 +0100

* gnu/packages/nvi.scm (nvi)[arguments]: Disable
incompatible-pointer-type and implicit-function-declaration errors.

Change-Id: I03b0c334426c637ba3e55910de02d8f4b15616fb
---
 gnu/packages/nvi.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/nvi.scm b/gnu/packages/nvi.scm
index bb23aa790a..ce65bcd916 100644
--- a/gnu/packages/nvi.scm
+++ b/gnu/packages/nvi.scm
@@ -92,7 +92,13 @@ (define-public nvi
                                file)
                        "."))
                    '("config.sub" "config.guess")))
-               #t)))))
+               #t))
+           (add-before 'configure 'fix-build
+             (let ((flags '("-g" "-O2" "-Wno-incompatible-pointer-types"
+                            "-Wno-implicit-function-declaration")))
+               (lambda _
+                 (when #$(or (target-hurd64?) (%current-target-system))
+                   (setenv "CPPFLAGS" (string-join flags)))))))))
     (inputs
       (list bdb ncurses))
     (native-inputs
-- 
2.45.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]