cURL / Mailing Lists / curl-library / Single Mail


Re: Building cURL with the -g compiler option

From: Guenter <>
Date: Wed, 09 Mar 2011 22:18:38 +0100

Am 09.03.2011 21:15, schrieb Saqib Ali:
> I'm trying to build cURLwith the -g compiler option for enhanced
> debugging. cc's man page says that compiling with -g produces additional
> symbol table information for dbx.
> But I'm not sure how to do build cURL with the -g flag. I'm on Solaris
> machine running SunOS 5.10. Trying to build Curl 7.21.3
if xyou anyway build self then please use latest which is 7.21.4 now.

> This is what I attempted: I set the environment variable CFLAGS=-g, then
> ran configure (which completed), then did make. But the compilation of
> the files doesn't include the -g flag as I had expected. It looks the
> same as it did without the CFLAGS environment variable set. Here is an
> example of a file being compiled:
I've no experience with Solaris, but I'd suggest that you try:
CFLAGS=-g ./configure

you can also enable debug with configure options, try:
./configure --help | grep debug


List admin:
Received on 2011-03-09