[sane-devel] autoconf/configure and debug
chris at cnpbagwell.com
Tue Jun 14 20:32:25 UTC 2011
On Tue, Jun 14, 2011 at 2:49 PM, stef <stef.dev at free.fr> wrote:
> in order to debug more efficiently, I have to re-edit Makefiles to remove
> the two -O2 options in CFLAGS and change the -g to the -ggdb option. Is there
> an easy way to get CFLAGS=-ggdb .... when configuring SANE ?
I've not tried this with sane-backends but its supposed to be as simple as:
configure will not default to CFLAGS="-g -O2" if you specify your own
value. But if your getting two -O2 then something else may be adding
it as well.
More information about the sane-devel