delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/14/21:00:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 14 Jul 2004 20:59:32 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: HOWTO build debug version of the cygwin dll with no optimisation?
Message-ID: <20040715005932.GB986@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <NUTMEG6KZmcK8r6beUz000008ab AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <20040714184836 DOT GA1389 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20040714184836.GA1389@cygbert.vinschen.de>
User-Agent: Mutt/1.4.1i

On Wed, Jul 14, 2004 at 08:48:36PM +0200, Corinna Vinschen wrote:
>On Jul 14 18:43, Dave Korn wrote:
>>   Ok, it doesn't mention how to do this in the user guide.  It doesn't say
>> how to do this in the FAQ.  It doesn't say how to do it on the website's
>> how-to-contribute page.  It doesn't say how to do this in the sources.  I've
>> searched at google.  I've searched at the list archive.  And the GNU
>> standard method (CFLAGS='-g -O0' ../src/configure) doesn't work.
>> 
>>   I found a post on the mailing list that suggests that you have to set
>> *three* environment variables, CFLAGS, CXXFLAGS, and LDFLAGS.
>> 
>>   I tried it and it didn't quite work properly.  My build logs are full of
>> stuff like...
>> 
>> make "AR_FLAGS=rc" 	"CC_FOR_BUILD=gcc" 	"CFLAGS=-O2 -g -O0"
>> "CFLAGS_FOR_BUILD=" 	"CFLAGS_FOR_TARGET=-O2 -g -O0" 	"LDFLAGS="
>                         ^^^^^^^^^^^^^^^^^
>                         That's it :-)
>
>Try `make CFLAGS=-g CFLAGS_FOR_TARGET=-g'.  That will compile everything
>w/o optimization

Or, once you've gotten supporting libraries built, just build in the
winsup/cygwin directory with CFLAGS=-g.  It's a lot faster to just build
cygwin from the cygwin subdirectory.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019