guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: perl: Enable threading support.


From: Ludovic Courtès
Subject: 02/03: gnu: perl: Enable threading support.
Date: Sat, 1 Oct 2016 13:20:51 +0000 (UTC)

civodul pushed a commit to branch core-updates
in repository guix.

commit 156c0810e936413ac554e2883343b3b40695cfdc
Author: Ben Woodcroft <address@hidden>
Date:   Sat Sep 24 23:22:54 2016 +1000

    gnu: perl: Enable threading support.
    
    * gnu/packages/perl.scm (perl)[arguments]: Configure with '-Dusethreads'.
    * gnu/packages/commencement.scm (perl-boot0)[arguments]: Omit inherited
    '-Dusethreads' flag during configure.
    
    Co-authored-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/commencement.scm |    6 +++++-
 gnu/packages/perl.scm         |    3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 265b709..53ba718 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -284,7 +284,11 @@
                            (lambda _
                              (substitute* "Configure"
                                (("^libswanted=(.*)pthread" _ before)
-                                (string-append "libswanted=" 
before)))))))))))))
+                                (string-append "libswanted=" before)))))))
+                     ;; Do not configure with '-Dusethreads' since pthread
+                     ;; support is missing.
+                     ((#:configure-flags configure-flags)
+                      `(delete "-Dusethreads" ,configure-flags))))))))
     (package-with-bootstrap-guile
      (package-with-explicit-inputs perl
                                    %boot0-inputs
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index fbccff2..b5e6e54 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -73,7 +73,8 @@
           "-Dinstallstyle=lib/perl5"
           "-Duseshrplib"
           (string-append "-Dlocincpth=" libc "/include")
-          (string-append "-Dloclibpth=" libc "/lib")))
+          (string-append "-Dloclibpth=" libc "/lib")
+          "-Dusethreads"))
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'setup-configure



reply via email to

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