This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Dinhibit_libc
- From: Ian Lance Taylor <iant at google dot com>
- To: "Kevin Yohe" <kevin at ssc-nh dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 16 Jul 2007 17:03:06 -0700
- Subject: Re: -Dinhibit_libc
- References: <000b01c7c634$00dab240$6501a8c0@sscnh.com>
"Kevin Yohe" <kevin@ssc-nh.com> writes:
> I am trying to configure and build a cross-compiler for a powerpc-750-elf.
> I use the following parameters to configure it;
>
> ../gcc-4.1.0/configure --target=powerpc-750-elf --prefix=C:/gnu/usr
> --exec-prefix=C:/gnu/usr/powerpc --with-gnu-as --with-gnu-ld
> --enable-languages=c,c++ --with-newlib -v 2>&1 | tee config.out
>
> The compiler works fine, however libc.a never gets generated. I noticed the
> -Dinhibit_libc flag during the build. I am wondering how it got there, and
> what parameters I need to use to generate libc.a? I thought that all I
> needed was --with-newlib.
gcc does not include a C library. You can build it with newlib, but
you also need to download newlib and put it in your source tree.
Ian