Page 1 of 1

configure flag that enables/disables -g

Posted: 2012-03-09T09:36:20-07:00
by NicolasRobidoux
I understand that I can turn off compilation with debugging (the -g flag of GCC, for example) by explicitly setting CFLAGS and CXXFLAGS, however it is my opinion that debugging should be off by default and that there should be a "with debugging" flag that can be passed to configure.

This would make things more foolproof for users who compile from source, and then, by default, performance/executable size would not be affected.

(I have not checked whether it is only bleeding edge svn which configures with -g by default.)

Re: configure flag that enables/disables -g

Posted: 2012-03-10T08:05:30-07:00
by salsaman
I am not sure about imagemagick, but generally if you install an application with "make install-strip", it should strip out all the debug info.