===================================================================
@@ -303,9 +303,15 @@
so put a * after their names so all of them get passed. */
#define LINK_SPEC \
"%{static}%{!static:-dynamic} \
+ %{!nodefaultlibs: %:remove-outfile(-lc) } \
+ %:remove-outfile(-ldbm) \
%:remove-outfile(-ldl) \
+ %:remove-outfile(-linfo) \
%:remove-outfile(-lm) \
+ %:remove-outfile(-lpoll) \
+ %:remove-outfile(-lproc) \
%:remove-outfile(-lpthread) \
+ %:remove-outfile(-lrpcsvc) \
%{fgnu-runtime: %{static|static-libgcc: \
%:replace-outfile(-lobjc libobjc-gnu.a%s); \
:%:replace-outfile(-lobjc -lobjc-gnu ) } }\