cURL / Mailing Lists / curl-library / Single Mail

curl-library

Building cURL with the -g compiler option

From: Saqib Ali <saqib.ali.75_at_gmail.com>
Date: Wed, 9 Mar 2011 15:15:40 -0500

Hi.

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

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:

cc -DHAVE_CONFIG_H -I../include/curl -I../include -I../include -I../lib
-I../lib -I/usr/local/ssl/include -I/home/myCurlLibs/include -s -xO2 -c
file.c -KPIC -DPIC -o .libs/file.o

There is no "-g" in there. How to get it in?

- Saqib

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-09