configure flag that enables/disables -g

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

configure flag that enables/disables -g

Post 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.)
salsaman
Posts: 11
Joined: 2011-08-08T05:34:04-07:00
Authentication code: 8675308

Re: configure flag that enables/disables -g

Post 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.
Post Reply