Closed multimeric closed 3 years ago
Since gh-49 -Duseshrplib
is used and libperl.so
can be now found at lib/perl5/*/core_perl/CORE/libperl.so
.
As for the performance penalty, I'd be surprised if there were any noticeably severe ones on modern systems since mayor Linux distributions also build Perl with its shared library.
I'm currently trying to submit a package to bioconda and have encountered a problem. Namely, the package that I want to compile expects
libperl.so
to be present on the system. The documentation for this tool, PennCNV, says:Currently, conda's
perl
does not buildlibperl.so
, although this can be enabled by configuring perl using-Duseshrplib
. However this apparently comes with a performance penalty (from perl'sINSTALL
document):So, to resolve this without performance penalty, I propose that
perl-feedstock
builds two separate packages:perl
, andlibperl-dev
(note that there is a precedent for package managers doing this, as seen by Debian and Ubuntu'slibperl-dev
package). We do this by specifying multiple outputs inmeta.yaml
. Thus, we build perl once normally (statically linked), and use that to generate theperl
package containing theperl
binary. Then wemake clean
, and build perl again with-Duseshrplib
, and use that to generate thelibperl-dev
, which containslibperl.so
.Thoughts?