fpm icon indicating copy to clipboard operation
fpm copied to clipboard

Producing shared libraries

Open rouson opened this issue 3 years ago • 3 comments

Description

Is anyone working on enabling fpm to build shared libraries? I would like to offer fpm as an alternative way to build OpenCoarrays. In thinking through what fpm won't be able to match relative to the current cmake build system generator, an ability to produce shared libraries seems like a useful one at least for system administrators. This feature request overlaps some with issue #524.

Possible Solution

I don't know enough to suggest possible solutions.

Additional Information

No response

rouson avatar Mar 18 '22 23:03 rouson

No, this is currently not possible. See my answer in https://github.com/fortran-lang/fpm/discussions/655 for things to consider in case anyone wants to pick this up.

awvwgk avatar Mar 19 '22 08:03 awvwgk

Thanks @awvwgk for mentioning this in the Spack issue #79.

Spack does handle RPATH issues quite nicely for Linux and MacOS: https://spack.readthedocs.io/en/latest/packaging_guide.html#handling-rpaths I'm not too familiar with DLLs to comment on how to resolve this for Windows.

wyphan avatar May 20 '22 08:05 wyphan

On *nix platforms at least, it may be possible to use libtool as an intermediary.

ivan-pi avatar Aug 11 '22 13:08 ivan-pi