https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35014
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org,
| |iains at gcc dot gnu.org
--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
As Dominique says, Darwin defaults to PIC so this works "out of the tin" - but
that's not relevant to Linux cases reported here
----
so it seems that what's requested is
the shared libgfortran (which is PIC and available)
a convenience library with non-PIC code (libgfortran.a) so that the status quo
is not broken.
a convenience library that has PIC code (e.g. libgfortran_pic.a) and some way
to instruct the driver to use that in linking.
This would allow a shared lib to be built statically linking libgfortran_pic.a
[the same would need to be done of libquadmath and any other dept].
===
A work-around might be to package the shared libgfortran.so with your
application and make use of rpath to point to it (so that the end-user does not
need to install GCC to use the app).