Create yum package with DONT_OPTIMIZE flag

Please: is it possible that you enable the DONT_OPTIMIZE flag within the Compiler Flags section of menuselect for all upcoming Asterisk yum-packages in the future?

For Debian/Ubuntu packages, you can follow the instructions here:

wiki.asterisk.org/wiki/display/ … e+Packages

Cheers.

Hi,

but this does not help on CentOS using yum, right?

For CentOS, it’s like:

rpm -i asterisk18-*.srpm

Open the spec file

vim /usr/src/redhat/SPECS/asterisk18.spec

Under %prep or %build (I forget which the others are under…), after the others, add
menuselect/menuselect --enable DONT_OPTIMIZE

Build the package
rpmbuild -ba /usr/src/redhat/SPECS/asterisk18.spec