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

Gün.



-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to