Setting -g should be up to the user and can be set in the CFLAGS environment variable. Building debugging symbols is slower especially on weaker hardware and will cause an increase in disk writes. Additionally many distros will just strip the symbols away making this wasteful.
I think this can be dropped on all Makefiles since it just gets patched out by packagers, including on OpenBSD. It's simple enough to add -g when rebuilding with -DSWM_DEBUG, you cool @marcopeereboom ?
Setting
-g
should be up to the user and can be set in theCFLAGS
environment variable. Building debugging symbols is slower especially on weaker hardware and will cause an increase in disk writes. Additionally many distros will just strip the symbols away making this wasteful.