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: Support the FreeBSD 5.0 system thread library model


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


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