Commit 13cc7b77 by Brendan Kehoe

spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o.

        * 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
parent 1c01e9df
......@@ -151,9 +151,11 @@ do { \
%{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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment