This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> I don't know much about FreeBSD, but the following patch should be able
> to fix the trouble.  The SWITCH_TAKES_ARG is a no-brainer, and I've just
> copied the linux specs that used to be included `verbatim'.

The problem is there is too much linux.h already in freebsd-elf.h.

I've tested all my patches with egcs-core-*-.tar.gz.  I'll have to check
where I goofed.  Possibly I blew it with what patches I sent in.  I'm
juggling several.  I am assuming that it fixing the problems in
freebsd-elf.h is suffiently tested by the core functionality.  Of course
this might not be the case.


> +/* Provide a STARTFILE_SPEC appropriate for FreeBSD.  Here we add
..snip..
> +     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \

WRONG.  FreeBSD has no gcrt*.o files.  If I made a mistake, fine.  Email
me and chastise my goof.  But please do not introduce more bogons that
now have to be removed.  Fixing freebsd-elf.h has become a very slow
process already.

-- 
-- David    (obrien@NUXI.com  -or-  obrien@FreeBSD.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]