Hello.<br><br>Is there a way to compile the ISC DHCP without code optimization?. I tried editing the Makefile created by ./configure, changing in the "CFLAGS" line the "-O2" option to "-O0" or even removing it completely, but then when I Make the output leads me to think that the code it's still being optimized.<br>
<br>For example: the last gcc output is "gcc -g -O2 -Wall -Werror -fno-strict-aliasing -I../bind/include -o dhcpd dhcpd-dhcpd.o......".<br><br>Also, running the dhclient through GDB shows that the values of some variables/pointers used in a function I created are being optimized ("value optimized out"). I'm getting a Segmentation fault during a malloc to a pointer (only initialized, pointing to NULL) which value is being optimized before the malloc and I'd like to try if compiling without optimizations would fix that problem.<br>
<br>Any help will be greatly appreciated.<br>Thanks.<br><br><br><br>David Rubel.<br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%" id="avg_ls_inline_popup">
</div>