From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12915 invoked by alias); 17 Mar 2008 22:58:31 -0000 Received: (qmail 12906 invoked by uid 22791); 17 Mar 2008 22:58:31 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Mar 2008 22:58:13 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1JbOHL-0005pY-GQ; Mon, 17 Mar 2008 22:58:03 +0000 Message-ID: <47DEF77B.7EBCBD1B@dessent.net> Date: Mon, 17 Mar 2008 22:58:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Rick Mann CC: gcc-help@gcc.gnu.org Subject: Re: Modifying the std C libraries References: <571CD048-5DA5-4978-B68D-1136AA528759@latencyzero.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00166.txt.bz2 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