From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5923 invoked by alias); 20 Mar 2004 01:16:11 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5916 invoked from network); 20 Mar 2004 01:16:10 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 20 Mar 2004 01:16:10 -0000 Received: (qmail 26839 invoked by uid 10); 20 Mar 2004 01:16:09 -0000 Received: (qmail 7077 invoked by uid 500); 20 Mar 2004 01:15:59 -0000 From: Ian Lance Taylor To: sashan Cc: gcc@gcc.gnu.org Subject: Re: [Newb] Building with debug info and no optimization References: <405B99BE.904@ihug.co.nz> Date: Sat, 20 Mar 2004 04:29:00 -0000 In-Reply-To: <405B99BE.904@ihug.co.nz> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg01193.txt.bz2 sashan writes: > I'm trying to build gcc with debug info only so I do this at the > command prompt > > export CFLAGS=-g > > I re-run configure to build the make file: > gcc_current_build $ ../gcc_current/configure --program-suffix=-current > gcc_current_build $ make There is probably some way to make that approach work. However, the easy way is to not set CFLAGS in the environment at all, and instead do make CFLAGS=-g Ian