This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Modifying the std C libraries
- From: Brian Dessent <brian at dessent dot net>
- To: Rick Mann <rmann at latencyzero dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Mar 2008 15:58:03 -0700
- Subject: Re: Modifying the std C libraries
- References: <571CD048-5DA5-4978-B68D-1136AA528759@latencyzero.com>
- Reply-to: gcc-help at gcc dot gnu dot org
Rick Mann wrote:
> How can I get GCC to ignore the stuff it would normally implicitly
> link against and instead link against a very specific version of the
> runtime libs?
Use '-nodefaultlibs' if you don't want the standard libs,
'-nostartfiles' if you don't want the standard startup files, and
'-nostdlib' if you don't want either. Note the blurb in the manual
about -lgcc if you use these.
Brian