<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">greping for that in the code I get:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 13px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">&lt;156&gt;:git grep -n _FORTIFY_SOURCE</div><div style="margin: 0px; font-size: 13px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">debian/rules<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">:</span>11<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">:</span>FS_CPPFLAGS?=-D<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">_FORTIFY_SOURCE</span>=2</div><div style="margin: 0px; font-size: 13px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">libs/libsndfile/configure.ac<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">:</span>516<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">:</span> &nbsp; &nbsp; &nbsp; MN_ADD_CFLAGS([-D<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">_FORTIFY_SOURCE</span>=2])</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">so, 1. if you are building debs, remove this from debian rules, and remove the line from libsndfile before bootstrap might help. &nbsp;I have never personally built the whole thing with -O0, just portions of the code by manually editing makefiles. &nbsp;--disable-optimization i know used to work ok for me, but does leave some turned on.</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Feb 11, 2015, at 2:19 AM, Sergey Safarov &lt;<a href="mailto:s.safarov@gmail.com" class="">s.safarov@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">In case like ticket&nbsp;<a href="https://freeswitch.org/jira/browse/FS-7214" class="">FS-7214</a> very helpful compile FS without optimization.<div class="">When I add flags CFLAGS and CXXFLAGS like below compilation is breaks. Addiding option "--disable-optimization" for configure script is help me.</div><div class=""><div class=""><br class=""></div><div class="">export CFLAGS="$CFLAGS -O0"</div><div class="">export CXXFLAGS="$CXXFLAGS -O0"</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">make[4]: Entering directory `/home/build/rpmbuild/BUILD/freeswitch-1.4.13/src/mod/languages/mod_python'</div><div class="">&nbsp; CC &nbsp; &nbsp; &nbsp; mod_python_la-mod_python.lo</div><div class="">In file included from /usr/include/limits.h:26:0,</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h:168,</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/syslimits.h:7,</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h:34,</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/include/python2.7/Python.h:19,</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from mod_python.c:35:</div><div class="">/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]</div><div class="">&nbsp;# &nbsp;warning _FORTIFY_SOURCE requires compiling with optimization (-O)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Can you&nbsp;suggest correct way to compile FS without optimization?</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>