Producing shared libraries
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
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.
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.
On *nix platforms at least, it may be possible to use libtool as an intermediary.