This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Modifying the std C libraries


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


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