This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: HOWTO build debug version of the cygwin dll with no optimisation?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: 'cygwin mailing-list' <cygwin at cygwin dot com>
- Date: Wed, 14 Jul 2004 20:48:36 +0200
- Subject: Re: HOWTO build debug version of the cygwin dll with no optimisation?
- References: <NUTMEG6KZmcK8r6beUz000008ab@NUTMEG.CAM.ARTIMI.COM>
- Reply-to: cygwin at cygwin dot com
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
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Co-Project Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/