I am not clear on how to build libraw in debug mode when using the configure script. I tried using CXXFLAGS=-g. But I noticed the .dSYM files were created in the libs directory with or without this.
The configure script itself has a -debug option but it appears to be related to debugging configure (atleast based on the comments) and not generating debug symbols.
Appreciate any help on this.