[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50299: [PATCH v3 06/27] gnu: swi-prolog: Make configuration wok when
From: |
Maxime Devos |
Subject: |
bug#50299: [PATCH v3 06/27] gnu: swi-prolog: Make configuration wok when cross-compiling. |
Date: |
Thu, 30 Sep 2021 00:47:38 +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 v3 01/27] lint: check-tests-true: Allow #:tests? #t for some build systems., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 03/27] gnu: lean: Add bash-minimal., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 04/27] gnu: swi-prolog: Move native-inputs to inputs where appropriate., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 05/27] gnu: swi-prolog: Don't explicitely enable tests., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 08/27] gnu: swi-prolog: Use cross-compiled bash in shebangs., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 06/27] gnu: swi-prolog: Make configuration wok when cross-compiling.,
Maxime Devos <=
- bug#50299: [PATCH v3 17/27] gnu: libicns: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 13/27] gnu: ruby-ffi-rzmq: Respect #:tests?., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 15/27] gnu: ecl: Don't pretend to enable tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 21/27] gnu: lablgtk: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 20/27] gnu: ocaml4.07-fftw3: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 09/27] gnu: swi-prolog: Set PROG_SWIPL when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 12/27] gnu: ruby-ffi-rzmq: Don't enable tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 23/27] gnu: pjproject: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 24/27] gnu: tdlib: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29
- bug#50299: [PATCH v3 25/27] gnu: extra-cmake-modules: Don't run tests when cross-compiling., Maxime Devos, 2021/09/29