(STARTFILE_SPEC): Wrap startfiles in %{!shared:}.
authorJason Merrill <merrill@gnu.org>
Thu, 20 Oct 1994 20:53:07 +0000 (20:53 +0000)
committerJason Merrill <merrill@gnu.org>
Thu, 20 Oct 1994 20:53:07 +0000 (20:53 +0000)
From-SVN: r8325

gcc/gcc.c

index 4fb47d716108d6e2fe251e13157c740d22aa139a..bb7e26a480de9264946530f1aa0056b8debff991 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -464,7 +464,7 @@ proper position among the other output files.  */
 /* config.h can define STARTFILE_SPEC to override the default crt0 files.  */
 #ifndef STARTFILE_SPEC
 #define STARTFILE_SPEC  \
-  "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
+  "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}"
 #endif
 
 /* config.h can define SWITCHES_NEED_SPACES to control passing -o and -L.