diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 91c5b10fee6..466d88392b3 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -77,7 +77,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}" #undef STARTFILE_SPEC -#define STARTFILE_SPEC "%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}" +#define STARTFILE_SPEC "%{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}} %{static:-static}" /* There are conflicting reports about whether this system uses