2007/8/16, Jerry Richards <[EMAIL PROTECTED]>: > I need to compile the sofia-sip with "-g" option for debugging and without > the "-g" option. > > If I build sofia-sip without the CFLAGS specified as a ./configure script, > then it IS compiled with the "-g" option. If I build sofia-sip with > "CFLAGS=" specified as a ./configure script, then it IS NOT compiled with > the "-g" option. > > Could you confirm that I am doing this correctly?
That is the correct way. I think configure includes "-g -O2" automatically in CFLAGS if it detects that you are using gcc and you have not specified CFLAGS. You can include any CC options with CFLAGS, like, CFLAGS="-O4 -g -ggdb". > Is there a more intuitive > method to accompish this? You can also strip the resulting library (with the command strip). Unlike some other compilers, gcc generates the same code regardless of the debugging settings, at least that is my experience. (Of course, some times you have to disable optimizations in order to trace execution and data.) -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel