-O2 flags comes from this line in debian/rules:
CC_EXTRA_OPTS += $(shell dpkg-buildflags --get CFLAGS)
which gives:
$ dpkg-buildflags --get CFLAGS
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security
In order to avoid the warnings, something needs to be changed in rules file to override
the default value -O2;
So I would argue that this is not an enhancement request but a bug in debian/rules. I
don't know how to change this back to a bug issue.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1004#issuecomment-281613256