guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: clisp: Add threads support on x84_64-linux.


From: guix-commits
Subject: 01/02: gnu: clisp: Add threads support on x84_64-linux.
Date: Mon, 4 Sep 2023 05:24:52 -0400 (EDT)

glv pushed a commit to branch lisp-team
in repository guix.

commit 047a0c31f9daec1d82053a5c25ec34f708ea3b7b
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Aug 3 16:44:16 2023 +0100

    gnu: clisp: Add threads support on x84_64-linux.
    
    Guix's build version of CLISP, fails to load bordeaux-threads:
    
    Error while trying to load definition for system bordeaux-threads
          This implementation is unsupported.
    
    This patch adds support for POSIX_THREADS on x86_64-linux
    system.
    
    * gnu/packages/lisp.scm (clisp)[arguments]: Add configuration options to
      support threads on x86_64-linux system.
    
    Reported and Co-Authored by Andrew Kravchuk <awkravchuk@gmail.com>
    Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
---
 gnu/packages/lisp.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 6f425a6e4a..fd2e1a006a 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2019-2023 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
-;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2021, 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2021 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2021 Charles Jackson <charles.b.jackson@protonmail.com>
 ;;; Copyright © 2022 Joeke de Graaf <joeke@posteo.net>
@@ -25,6 +25,7 @@
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
+;;; Copyright © 2023 Andrew Kravchuk <awkravchuk@gmail.com.
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -380,6 +381,10 @@ supporting ASDF, Sockets, Gray streams, MOP, and other 
useful components.")
                                                      (%current-target-system)))
                                  '("CFLAGS=-falign-functions=4")
                                  '())
+                           ,@(if (target-x86-64?)
+                                 '("--enable-portability"
+                                   "--with-threads=POSIX_THREADS")
+                                 '())
                             "--with-dynamic-ffi"
                             "--with-dynamic-modules"
                             "--with-ffcall"



reply via email to

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