(LINK_SPEC): Pass -shared through; don't

pass -init __main if -shared.

From-SVN: r8327
This commit is contained in:
Jason Merrill 1994-10-20 21:52:05 +00:00
parent f987462f48
commit 5a841e0710

View File

@ -26,4 +26,5 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef LINK_SPEC
#define LINK_SPEC \
"-G 8 -O1 %{static:-non_shared} %{!static:-call_shared} -init __main"
"-G 8 -O1 %{!shared:-init __main} %{static:-non_shared}
%{!static:%{shared:-shared} %{!shared:-call_shared}}"