morning Luis, morning list,

I've only ever done this with C code, but my solution (read "hack") wound
up being (1) distribute the local code with the CPAN module and (2) use the
ExtUtils::MakeMaker OBJECT option (
https://metacpan.org/pod/ExtUtils::MakeMaker#OBJECT) to statically link
that code into the XS module.  I'm not sure if you can rely on EU::MM to
provide default rules for compiling fortran -- if not, you might have to
add some make recipes with MY::c_o() or similar.  of course, that only
really works well if your shared code-base is fairly small, localized, and
stable; otherwise your best bet might be to package the shared code as a
separate library and check for it manually in Makefile.PL with e.g.
Devel::CheckLib or pkg-config (possibly via PkgConfig or
ExtUtils::PkgConfig), but don't expect useful results from cpantesters in
that case.

marmosets,
  Bryan


On Fri, Jan 22, 2016 at 4:11 AM, Luis Mochan <[email protected]> wrote:

> I have some modules that use a couple of fortran routines which I have
> compiled,
> put into a library and saved in a known place, and interface to them
> using Inline::Pdlpp. I wonder, what is the best/easiest way to proceed
> to distribute the module through CPAN. I guess I would have to
> distribute the fortran sources and make sure the
> library is somehow built and installed. Actually, the routines I use are in
> Slatec, but not in PDL::Slatec. I'll appreciate suggestions.
> Best regards,
> Luis
>
>
>
> --
>
>                                                                   o
> W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
> Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
> Apdo. Postal 48-3, 62251             |                           (*)/\/  \
> Cuernavaca, Morelos, México          | [email protected]   /\_/\__/
> GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> pdl-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdl-general
>



-- 
Bryan Jurish                           "There is *always* one more bug."
[email protected]         -Lubarsky's Law of Cybernetic Entomology
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to