This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compile Without Libc
- From: Ian Lance Taylor <ian at airs dot com>
- To: aetherane <aetherane at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 25 Sep 2005 02:36:03 -0700
- Subject: Re: Compile Without Libc
- References: <904939.post@talk.nabble.com>
"aetherane \(sent by Nabble.com\)" <lists@nabble.com> writes:
> I am cross compiling an application to an architecture where the libc functions won't really be useful to me. Whenever I try to compile my application, I get the following message
> "ld: cannot find -lc"
> After searching the internet, I came to the conclusion that it is looking for libc. Are there any flags that I can use so it doesn't require libc?
> Or should I just build libc so it will link?
This question would be more appropriate on gcc-help.
See the -nodefaultlibs option. See also the note about -lgcc in the
-nostdlib option.
Ian