This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: gcc 2.95 crossed from linux to i386-coff


"C. M. Heard/VVNET, Inc." wrote:

> On Mon, 16 Aug 1999, Gregory Gerard wrote:
> >
> > I'm trying to build gcc 2.95 for an i386-coff target and I'm dying when it
> > tries to compile libgcc2.c (it can't find the header files unistd.h and
> > stdlib.h)
> >
> > How do I get this to work?  There is a #if directive surrounding the
> > inclusion of these files named inhibit_libc, but I don't know the
> > ramifications of forcing that flag for just that file and don't know the
> > correct place to turn it on in the configuration or the make.
>
> I think all you need to to is to invoke make as follows:
>
> make LANGUAGES=c GCC_CFLAGS=-Dinhibit_libc
>
> or, if you want c and c++ support, say
>
> make LANGUAGES="c c++" GCC_CFLAGS=-Dinhibit_libc
>
> At least, that was what one did back in the days of gcc-2.7.2.  Presumably
> someone else will chime in and correct me if this has changed.

I'm not sure if the "LANGUAGES=" expression still works.  I have a feeling that
gcc2.95 uses the "--enable-languages=" expression as a configure argument.  Try
it if the LANGUAGES expression doesn't work.

To answer Greg's original question:
You must have the i386-coff headers and runtime libraries preinstalled in
$prefix/$target/include and $prefix/$target/lib.  An alternative is to use the
--with-headers option to point to the target headers.  It will then copy them to
the installation directory during the "make install" phase.

Brendan Simon.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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