[PATCH] Re: Current egcs-mainline fails to build on FreeBSD 3.1

Alexandre Oliva oliva@dcc.unicamp.br
Fri Jun 4 14:50:00 GMT 1999


On Jun  3, 1999, Marc Espie <espie@quatramaran.ens.fr> wrote:

> The SWITCH_TAKES_ARG is a no-brainer, and I've just copied the linux
> specs that used to be included `verbatim'.

> --- freebsd-elf.h.orig	Thu Jun  3 11:26:09 1999
> +++ freebsd-elf.h	Thu Jun  3 11:30:22 1999
> +#undef	STARTFILE_SPEC
> +#define STARTFILE_SPEC \
> +  "%{!shared: \
> +     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
> +		       %{!p:%{profile:gcrt1.o%s} \
> +			 %{!profile:crt1.o%s}}}} \
> +   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
 
>  #undef	LIB_SPEC
>  #if 1

BTW, does it make any sense to link with -lgmon on FreeBSD 3.*?  A
friend of mine has just complained that egcs 1.1.2 won't link when
given -pg, because -lgmon does not exist, and I couldn't help him
because I'm no profiling expert, and no FreeBSD expert at all :-)

Any ideas?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc-patches mailing list