Debug symbols are necessary for debugging and profiling.
On windows we need the .pdb files and on linux debug symbols can be delivered in separate files, too. The configure options for producing those (at least on linux) are "-force-debug-info -separate-debug-info". The resulting debug symbols could than be delivered as separate packages so that people who don't need them don't have to install them.
On Windows PDBs can be generated by adding these flags for VS configuration:
1. -Zi flag for compiler. It tells C compiler to create a "program database" debug information.
2. /DEBUG /OPT:REF flags for linker. /DEBUG turns on the creation of PDB and /OPT:REF tells the linker to eliminate unreferenced data (this debug info) from a DLL.
We need to check if our configure options already do this. If not, they should be fixed.