Add STARTFILE_SPEC so -pg and -static will use the proper crt0.o, mcrt0.o

or scrt0.o.  (Fix from PR 2763.  Other parts of 2763 not needed because
lib/csu/* already makes the proper .o files for all ports except mips.)
This commit is contained in:
phil 1997-05-15 00:27:38 +00:00
parent 8219088bd8
commit aadf5347f8
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@
#endif
/* Provide a STARTFILE_SPEC appropriate for NetBSD. Here we provide
support for the special GCC option -static. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
"%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:%{!static:crt0%O%s}%{static:scrt0%O%s}}}}"
/* Provide a CPP_SPEC appropriate for NetBSD. Current we just deal with
the GCC option `-posix'. */