This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] if-exists-else spec function, NetBSD + GCC crtstuff
On Fri, Nov 22, 2002 at 01:10:51PM -0800, Jason R Thorpe wrote:
> > * gcc.c (static_spec_functions): Add if-exists-else spec
> > function.
> > (if_exists_else_spec_function): New function.
> > * doc/invoke.texi: Document the if-exists-elf spec function.
> >
> > * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
> > extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o".
> > (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
> > (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
> > to "" on the NetBSD a.out configurations.
> > * config/netbsd-elf.h (STARTFILE_SPEC): For -static, use
> > "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
> > * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
Ok.
r~