This is the mail archive of the
mailing list for the GCC project.
Re: [Patch][GCC] Document and fix -r (partial linking)
On Thu, 23 Aug 2018, Iain Sandoe wrote:
> Joseph: As a side-comment, is there a reason that we don’t exclude
> gomp/itm/fortran/gcov from the link for -nostdlib / -nodefaultlib?
> If we are relying on the lib self-specs for this, then we’re not
> succeeding since the one we build at the moment don’t include those
Well, fortran/gfortranspec.c for example has
/* These options disable linking entirely or linking of the
standard libraries. */
library = 0;
and only uses libgfortran.spec if (library). So it's certainly meant to
avoid linking with libgfortran or its dependencies if -nostdlib.
Joseph S. Myers