https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35014
Amir Shahmoradi <a.shahmoradi at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |a.shahmoradi at gmail dot com --- Comment #9 from Amir Shahmoradi <a.shahmoradi at gmail dot com> --- This is an old thread, but the problem does not seem to have been resolved yet, at least as of GFortran 8.3. I agree with c...@alum.mit.edu on this matter. This looks more like a bug in the design. The user should not need to rebuild an entire GNU Compiler Collection just for the sake of being able to use a compiler flag "-static-libgfortran". The lack of this feature practically makes the GFortran compiler useless in building shared libraries, as it will always have dependencies that most high-level-language users will not have installed on their systems. Requesting them to be able to install the dependencies correctly is too much, IMO. I would appreciate it very much if this build flaw in GFortran gets fixed by also adding positions-independent library builds.