[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50299: [PATCH v5 06/24] gnu: swi-prolog: Make configuration wok when
From: |
Maxime Devos |
Subject: |
bug#50299: [PATCH v5 06/24] gnu: swi-prolog: Make configuration wok when cross-compiling. |
Date: |
Fri, 4 Mar 2022 13:01:01 +0000 |
* 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.30.2
- bug#50299: [PATCH v5 00/24] Fix 'check-tests-true' linter and some packages, Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 23/24] gnu: extra-cmake-modules: Don't run tests when cross-compiling., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 22/24] gnu: tdlib: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 02/24] gnu: lean: Don't run tests when cross-compiling., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 15/24] gnu: ecl: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 16/24] gnu: perl-unicode-utf8: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 11/24] gnu: ruby-yard-with-tests: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 13/24] gnu: ruby-ffi-rzmq: Respect #:tests?., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 07/24] gnu: swi-prolog: Don't use 'cc'., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 20/24] gnu: lablgtk: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 06/24] gnu: swi-prolog: Make configuration wok when cross-compiling.,
Maxime Devos <=
- bug#50299: [PATCH v5 14/24] gnu: go-1.16: Don't run tests when cross-compiling., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 17/24] gnu: libicns: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 03/24] gnu: lean: Add bash-minimal., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 05/24] gnu: swi-prolog: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 12/24] gnu: ruby-ffi-rzmq: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 18/24] gnu: python2-empy: Run tests conditionally., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 01/24] lint: check-tests-true: Allow #:tests? #t for some build systems., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 09/24] gnu: swi-prolog: Set PROG_SWIPL when cross-compiling., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 10/24] gnu: swi-prolog: Correct reference to 'bin/swi-prolog'., Maxime Devos, 2022/03/04
- bug#50299: [PATCH v5 04/24] gnu: swi-prolog: Move native-inputs to inputs where appropriate., Maxime Devos, 2022/03/04