(LIB_SPEC): Don't try to link with libraries we
authorJason Merrill <merrill@gnu.org>
Sat, 25 Mar 1995 02:06:54 +0000 (02:06 +0000)
committerJason Merrill <merrill@gnu.org>
Sat, 25 Mar 1995 02:06:54 +0000 (02:06 +0000)
>         know only exist in archive form unless -static.

From-SVN: r9231

gcc/config/i386/linux.h

index a28fbef1e2e8dfcd87af238b89a22afdca4f88ca..79d73335fa2e6f76c02c7218e3b42f9ad9641d69 100644 (file)
@@ -73,8 +73,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef LIB_SPEC
 #define LIB_SPEC \
-"%{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
- %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}" 
+"%{mieee-fp:-lieee} %{p*:-lgmon} %{!static:-lc} \
+ %{static:%{p*:-lc_p} %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}"
 
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC  "%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}} %{static:-static}"