I&#39;d like to build one module (mod_fifo) with the -pg compiler flag.  But my inexperience with gcc makefiles is making it difficult.  :-)  Does anyone have any info for doing profiling in a FreeSwitch module?<div><br></div>
<div>The only way I can get it to even compile with the profiling flag is to run ./configure to set the flag for ALL modules, then make mod_fifo, then re-run configure to remove the flag.  My code:</div><div><br></div><div>
$&gt; export MOD_CFLAGS=&quot;-pg&quot;</div><div>$&gt; export CFLAGS=&quot;-pg&quot;</div><div>$&gt;  ./configure</div><div>$&gt;  make mod_fifo</div><div>$&gt;  # undo the changes so I don&#39;t screw up my entire build.</div>
<div>$&gt;  export MOD_CFLAGS=</div><div>$&gt;  export CFLAGS=</div><div>$&gt;  ../configure</div><div><br></div><div>Unfortunately, ./configure takes about 40 minutes to run on my poor little pogoplug, and then &quot;make mod_fifo&quot; feels the need to rebuild a bunch of libraries with the -pg flag (which I don&#39;t want), which adds another 15 minutes.  In all, my script takes 105 minutes to run.</div>
<div><br></div><div>After all this, I can see the -pg flag in use when doing &quot;make mod_fifo&quot;, and -pg shows up in the relink_command in <a href="http://mod_fifo.la">mod_fifo.la</a>.  But it doesn&#39;t create the profiling data file, so apparently the -pg didn&#39;t actually work.</div>
<div><br></div><div>I&#39;m stumped.  :-)</div><div><br></div>