I’ve just started learning Linux and I’m having some trouble disabling GCC’s optimization for one of my C++ projects.
The project is built with makefiles like so…
make -j 10 && make install
I’ve read on various sites that the command to disable optimization is something along the lines of…
gcc -O0 <your code files>
Could someone please help me apply this to makefiles instead of individual code? I’ve been searching for hours and have come up empty handed.
In some standard makefile settings you could
But the makefile might use other substitution variables or override the environment. You need to show us the Makefile in order to propose edits