OSDN Git Service

(STARTFILE_SPEC): Handle -p and -pg
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Oct 1993 22:48:15 +0000 (22:48 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Oct 1993 22:48:15 +0000 (22:48 +0000)
outermost.  Also add support for cross-linking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5692 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/linux.h

index 01b96ad..58ce5c5 100644 (file)
@@ -73,7 +73,7 @@
  */
 
 #define STARTFILE_SPEC  \
-  "%{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}}}}"
+  "%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{g*:-static} %{!static:%{nojump:-nojump}} %{static:-static}}} -L"TOOLDIR"/lib"
 
 /*
  *The cross-compile uses this.
@@ -83,7 +83,7 @@
 #else
 
 #define STARTFILE_SPEC  \
-  "%{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}}}}"
+  "%{pg:gcrt0.o%s -static} %{!pg:%{p:gcrt0.o%s -static} %{!p:crt0.o%s %{g*:-static}%{!static:%{nojump:-nojump}} %{static:-static}}}"
 
 /*
  *The native Linux system uses this.