https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80556
Jeffrey A. Law <law at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at redhat dot com --- Comment #44 from Jeffrey A. Law <law at redhat dot com> --- So coming back to this. Thanks for outlining the key specs. So link_gcc_c_sequence doesn't pull in -lSystem because of -static-libgcc, but it does appear (after -lgcc_eh -lgcc) because of of the %lib spec which only avoids -lSystem if -static was specified, but not -static-libgcc. Fixing the specs seems preferable to me over the original patch. It'd be ideal if we could get someone with Darwin expertise to chime in on your patch to REAL_LIBGCC_SPEC as a second opinion -- I'm just not qualified enough in any aspects of Darwin to give a final ACK here.