Hello,

the comment is probably old, however it says that the default build is without optimizations and with debugging symbols.

But if you build via some packaging system, it can happen that the debugging sysmbols are stripped and pakaged separately, like kamailio-dbg-version.deb

Otherwise, try to track the CC flags in the Makefile, those are the parameters passed to compiler.

Cheers,
Daniel

On 24.02.21 14:58, Sergey Safarov wrote:
I looked at Makefiles and can see instruction

# WARNING: do not add mode=debug or mode=release anymore in the Makefile,
# use make mode=debug all instead. By default Kamailio is compiled with
# debugging symbols in all cases (-g) and without optimization (-O0).


https://github.com/kamailio/kamailio/blob/master/src/Makefile.defs#L749-L751

I do not understand how properly build Kamailio with disabled optimization.
Could you let me know how to use "mode=debug"?

Sergey

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla