./configure ignores CFLAGS='-g' (unless I use --enable-debug)
The following patch:
-g[3]-g from default options, for compatibility purpose with previous releases of GnuCOBOL (maybe you should consider -g as a default with GCC for GnuCOBOL 3.X)Side effects: if you CFLAGS=-g, you'll lose -O2 (but keep -finline-functions, which is an -O3 optimisation...).
So make sure to use:
CFLAGS="-g -O2" ./configure
Diff:
Assigned to Edward for rechecking and commiting.
Looks good to me. Committed in [r2639]. I couldn't find out why configure removed
-g- it's been there since [r1] at least.