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:
parent
8219088bd8
commit
aadf5347f8
|
@ -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'. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue