bug-guix
[Top][All Lists]
Advanced

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

bug#50299: [PATCH v4 07/25] gnu: swi-prolog: Don't use 'cc'.


From: Maxime Devos
Subject: bug#50299: [PATCH v4 07/25] gnu: swi-prolog: Don't use 'cc'.
Date: Fri, 31 Dec 2021 12:14:49 +0000

* gnu/packages/prolog.scm
  (swi-prolog)[arguments]<#:configure-flags>: Set CMAKE_HOST_CC to gcc when
  cross-compiling.
---
 gnu/packages/prolog.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm
index 8d940530d8..fc3956b17b 100644
--- a/gnu/packages/prolog.scm
+++ b/gnu/packages/prolog.scm
@@ -103,7 +103,9 @@ manner.  It also features an interactive interpreter.")
                    ;; Set this manually, otherwise CMake would need to
                    ;; run a cross-compiled binary, which it can't do.
                    ;; These values were found on a Linux system.
-                   '("-DBSD_SIGNALS=1" "-DQSORT_R_GNU=1")
+                   '("-DBSD_SIGNALS=1" "-DQSORT_R_GNU=1"
+                     ;; If absent, the non-existent 'cc' is used.
+                     "-DCMAKE_HOST_CC=gcc"
                    '())
              "-DINSTALL_DOCUMENTATION=ON"
              "-DSWIPL_INSTALL_IN_LIB=OFF") ; FIXME: Breaks RUNPATH validation.
-- 
2.30.2






reply via email to

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