<div dir="ltr"><div>Spack changes the configuration if debug variant is enabled as per this line :<br></div><div><br>
<span class="gmail-pl-s"><span class="gmail-pl-pds">'</span>--with-debugging=<span class="gmail-pl-c1">%s</span><span class="gmail-pl-pds">'</span></span> <span class="gmail-pl-k">%</span> (<span class="gmail-pl-s"><span class="gmail-pl-pds">'</span>1<span class="gmail-pl-pds">'</span></span> <span class="gmail-pl-k">if</span> <span class="gmail-pl-s"><span class="gmail-pl-pds">'</span>+debug<span class="gmail-pl-pds">'</span></span> <span class="gmail-pl-k">in</span> spec <span class="gmail-pl-k">else</span> <span class="gmail-pl-s"><span class="gmail-pl-pds">'</span>0<span class="gmail-pl-pds">'</span></span>), <br><br></div><div>I'm not sure what needs to be done to change this. <br>
</div><div dir="ltr"><br>In the meantime, I added -g to CFLAGS in the makefile and now I have this : <a href="https://pastebin.com/wxf05BH0">https://pastebin.com/wxf05BH0</a><br></div></div>