~ruther/guix-local

156c0810e936413ac554e2883343b3b40695cfdc — Ben Woodcroft 9 years ago 56ee1d2
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 <ludo@gnu.org>
2 files changed, 7 insertions(+), 2 deletions(-)

M gnu/packages/commencement.scm
M gnu/packages/perl.scm
M gnu/packages/commencement.scm => gnu/packages/commencement.scm +5 -1
@@ 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

M gnu/packages/perl.scm => gnu/packages/perl.scm +2 -1
@@ 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