--- gcc/config/i386sun.h 2018/04/24 17:51:34 1.1.1.1 +++ gcc/config/i386sun.h 2018/04/24 17:54:26 1.1.1.2 @@ -33,12 +33,12 @@ the Free Software Foundation, 675 Mass A #define STARTFILE_SPEC \ "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" -#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\ +#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \ %{g:-lg} %{sun386:}" /* That last item is just to prevent a spurious error. */ #undef LINK_SPEC -#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}" +#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{static:-Bstatic}" /* Extra switches to give the assembler. */