This is the mail archive of the cygwin mailing list for the Cygwin 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: HOWTO build debug version of the cygwin dll with no optimisation?

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"
>                         ^^^^^^^^^^^^^^^^^
>                         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:
Problem reports:

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