[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50299: [PATCH v2 06/27] gnu: swi-prolog: Make configuration wok when
From: |
Maxime Devos |
Subject: |
bug#50299: [PATCH v2 06/27] gnu: swi-prolog: Make configuration wok when cross-compiling. |
Date: |
Mon, 27 Sep 2021 17:45:16 +0200 |
* gnu/packages/prolog.scm
(swi-prolog)[arguments]<#:configure-flags>: Set BSD_SIGNALS and QSORT_R_GNU
when cross-compiling.
---
gnu/packages/prolog.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm
index be5a3c5bf8..8d940530d8 100644
--- a/gnu/packages/prolog.scm
+++ b/gnu/packages/prolog.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -98,7 +99,13 @@ manner. It also features an interactive interpreter.")
(arguments
`(#:parallel-build? #t
#:configure-flags
- (list "-DINSTALL_DOCUMENTATION=ON"
+ (list ,@(if (%current-target-system)
+ ;; 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")
+ '())
+ "-DINSTALL_DOCUMENTATION=ON"
"-DSWIPL_INSTALL_IN_LIB=OFF") ; FIXME: Breaks RUNPATH validation.
#:phases
(modify-phases %standard-phases
--
2.33.0
- bug#50299: [PATCH v2 02/27] gnu: lean: Set #:tests? appropriately when cross-compiling., (continued)
- bug#50299: [PATCH v2 02/27] gnu: lean: Set #:tests? appropriately when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 04/27] gnu: swi-prolog: Move native-inputs to inputs where appropriate., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 05/27] gnu: swi-prolog: Don't explicitely enable tests., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 11/27] gnu: ruby-byebug-11: Don't enable tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 10/27] gnu: ruby-yard-with-tests: Don't enable tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 12/27] gnu: ruby-ffi-rzmq: Don't enable tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 14/27] gnu: go-1.16: Don't enable tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 09/27] gnu: swi-prolog: Set PROG_SWIPL when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 26/27] gnu: inkscape-1.1: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 27/27] gnu: ghc-bsb-http-chunked: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 06/27] gnu: swi-prolog: Make configuration wok when cross-compiling.,
Maxime Devos <=
- bug#50299: [PATCH v2 17/27] gnu: libicns: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 13/27] gnu: ruby-ffi-rzmq: Respect #:tests?., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 18/27] gnu: python2-empy: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 22/27] gnu: belcard: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 21/27] gnu: lablgtk: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 15/27] gnu: ecl: Don't pretend to enable tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 07/27] gnu: swi-prolog: Don't use 'cc'., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 20/27] gnu: ocaml4.07-fftw3: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 19/27] gnu: python2-promise: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27
- bug#50299: [PATCH v2 23/27] gnu: pjproject: Don't run tests when cross-compiling., Maxime Devos, 2021/09/27