From daa12375ee5a7552b3f216e0e94f46890c2e02a1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 25 Mar 1995 02:06:54 +0000 Subject: [PATCH] (LIB_SPEC): Don't try to link with libraries we > know only exist in archive form unless -static. From-SVN: r9231 --- gcc/config/i386/linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index a28fbef1e2e..79d73335fa2 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -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}" -- 2.30.2