* spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o.
(LIB_SPEC): Add crtend.o for running ctors/dtors.
* t-sol2 (EXTRA_PARTS): Add crtbegin.o and crtend.o for C++.
(FIXINCLUDES): Deleted.
* configure (sparc-*-solaris2*): Set fixincludes here.
From-SVN: r2441
%{ansi:/usr/ccs/lib/values-Xc.o%s} \
%{!ansi: \
%{traditional:/usr/ccs/lib/values-Xt.o%s} \
- %{!traditional:/usr/ccs/lib/values-Xa.o%s}}}}"
+ %{!traditional:/usr/ccs/lib/values-Xa.o%s}}}} \
+ crtbegin.o%s"
#undef LIB_SPEC
#define LIB_SPEC \
"%{!shared:%{!symbolic:-lc}} \
+ crtend.o%s \
%{!shared:%{!symbolic:%{pg:crtn.o%s}%{!pg:crtn.o%s}}}"
# we need startup files for solaris, since we don't get them with the system
-EXTRA_PARTS=crt1.o crti.o crtn.o gmon.o
-
-# For svr4 we run the special svr4 fixincludes script.
-
-FIXINCLUDES=fixinc.svr4
+EXTRA_PARTS=crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o
# we need to supply our own assembly versions of libgcc1.c files,
# since the user may not have native 'cc' available