Commit 8f54a09b by Richard Stallman

(STARTFILE_SPEC): -static is added to ld if

-pg, -g or -p is passed down by gcc.

From-SVN: r2687
parent 9391c372
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
*/ */
#define STARTFILE_SPEC \ #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. *The cross-compile uses this.
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
#else #else
#define STARTFILE_SPEC \ #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. *The native Linux system uses this.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment