<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 4, 2018 at 12:40 PM, Dan Wilcox <span dir="ltr"><<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">I was trying to make a quick test build of an external which uses pdlibbuilder (abl_link~) and wanted to simply disable optimizations and enable debug symbol generation.<div><br></div><div>I tried a simple CFLAG override but it didn't seem to work:<div><br></div><div>make CFLAGS="-O0 -g"</div><div><br></div><div>How do override work with pdlibbuilder? Usually, I would expect this to at least append "-O0 -g" to the end of the computed CFLAGS.</div><div><br></div></div></div></blockquote><div>Can you specify "didn't seem to work"?<br><br>CFLAGS should override categories optimization.flags arch.c.flags. You can inspect accumulated c.flags and cxx.flags by using "make vars CFLAGS="-O0 -g". For me on Xubuntu that gives:<br><br>c.flags = -DPD -I "/usr/include/pd" -DUNIX  -fPIC  -O0 -g<br>cxx.flags = -DPD -I "/usr/include/pd" -DUNIX  -fPIC -fcheck-new  -O0 -g<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">--------</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Dan Wilcox</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://twitter.com/danomatika" target="_blank">@danomatika</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://danomatika.com" target="_blank">danomatika.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><br class="gmail-m_322815552945317847Apple-interchange-newline">
</div>


<br></div></div></div></blockquote></div><br></div></div>