(STARTFILE_SPEC): -static is added to ld if
authorRichard Stallman <rms@gnu.org>
Wed, 4 Nov 1992 05:42:49 +0000 (05:42 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 4 Nov 1992 05:42:49 +0000 (05:42 +0000)
-pg, -g or -p is passed down by gcc.

From-SVN: r2687

gcc/config/i386/linux.h

index d74a05e..5b2e96a 100644 (file)
@@ -64,7 +64,7 @@
  */
 
 #define STARTFILE_SPEC  \
-  "%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}} -L"TOOLDIR"/lib"
+  "%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}} -L"TOOLDIR"/lib"
 
 /*
  *The cross-compile uses this.
@@ -74,7 +74,7 @@
 #else
 
 #define STARTFILE_SPEC  \
-  "%{g*:crt0.o%s} %{!g*:%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}"
+  "%{g*:crt0.o%s -static} %{!g*:%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{!static:%{nojump:-nojump}} %{static:-static}}}}"
 
 /*
  *The native Linux system uses this.