diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-04 05:42:49 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-04 05:42:49 +0000 |
commit | 8f54a09b29d5a56da5a452ec1117731841de2a8a (patch) | |
tree | eace8bc4b1029e57fb37a3d629c53523018ca55b /gcc | |
parent | 9391c37234deb3a3a4818845138e212abd20c093 (diff) | |
download | gcc-8f54a09b29d5a56da5a452ec1117731841de2a8a.zip gcc-8f54a09b29d5a56da5a452ec1117731841de2a8a.tar.gz gcc-8f54a09b29d5a56da5a452ec1117731841de2a8a.tar.bz2 |
(STARTFILE_SPEC): -static is added to ld if
-pg, -g or -p is passed down by gcc.
From-SVN: r2687
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/linux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index d74a05e..5b2e96a 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -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. |