This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Support the FreeBSD 5.0 system thread library model
- To: rittle at rsch dot comm dot mot dot com
- Subject: Re: PATCH: Support the FreeBSD 5.0 system thread library model
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 11 May 2001 23:37:08 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200105112150.f4BLovc81203@latour.rsch.comm.mot.com>
On May 11, 2001, Loren James Rittle <rittle@latour.rsch.comm.mot.com> wrote:
> + #include <osreldate.h>
This is not cross-compiler friendly. Remember that you may be
building GCC to run on FreeBSD 5 on a machine running FreeBSD 4, or on
a machine that doesn't have an <osreldate.h> header at all.
The right way to approach this problem is to define a new header file
that overrides the LIB_SPEC setting and adjust config.gcc to use it in
addition to freebsd.h on FreeBSD 5 configurations.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me