Modifying the std C libraries

Brian Dessent
Mon Mar 17 22:58:00 GMT 2008

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.


More information about the Gcc-help mailing list