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>
This commit is contained in:
parent
56ee1d2015
commit
156c0810e9
|
@ -284,7 +284,11 @@
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "Configure"
|
(substitute* "Configure"
|
||||||
(("^libswanted=(.*)pthread" _ before)
|
(("^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-bootstrap-guile
|
||||||
(package-with-explicit-inputs perl
|
(package-with-explicit-inputs perl
|
||||||
%boot0-inputs
|
%boot0-inputs
|
||||||
|
|
|
@ -73,7 +73,8 @@
|
||||||
"-Dinstallstyle=lib/perl5"
|
"-Dinstallstyle=lib/perl5"
|
||||||
"-Duseshrplib"
|
"-Duseshrplib"
|
||||||
(string-append "-Dlocincpth=" libc "/include")
|
(string-append "-Dlocincpth=" libc "/include")
|
||||||
(string-append "-Dloclibpth=" libc "/lib")))
|
(string-append "-Dloclibpth=" libc "/lib")
|
||||||
|
"-Dusethreads"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'setup-configure
|
(add-before 'configure 'setup-configure
|
||||||
|
|
Loading…
Reference in New Issue