<html><body>
<p><font size="2">Folks,</font><br>
<br>
<font size="2">I have a question about how folks compile opensips with debian packaging. The basic question is which are the "correct" CFLAGS values?</font><br>
<br>
<font size="2">When doing a debian build (opensips Makefile deb target), the debian/rules sets CFLAGS to "-Wall -g -O2".</font><br>
<br>
<font size="2">The opensips Makefile.defs around line 725 has much more extensive CFLAGS values for my architecture (x86_64,gcc,4.x). These more extensive values include:</font><br>
<font size="2">        -O9 -funroll-loops -Wcast-align $(PROFILE) -Wall \</font><br>
<font size="2">        -minline-all-stringops \</font><br>
<font size="2"> -falign-loops -ftree-vectorize -mtune=$(CPU_TYPE) \</font><br>
<font size="2"> -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls</font><br>
<font size="2">The above defs don't get set when I build a debian package.</font><br>
<br>
<font size="2">The "problem" is on Makefile.defs line 630-633 which allows external CFLAGS to override. Alternatively, the problem is in debian/rules which goes to great lengths to setup CFLAGS.</font><br>
<br>
<font size="2">For those who compile their own debian packages (from trunk), which CFLAGS options do you use? Do you accept the "lesser" debian/rules setting, or somehow enable the "greater" settings in Makefile.defs? If the later, how to do you enable this?</font><br>
<br>
<font size="2">Thanks,</font><br>
<font size="2">Kennard</font></body></html>