I'm trying to debug crashes in tint2. It seems that my self builds don't crashe in the same way, but changing to _FORTIFY_SOURCE=3 creates the crashing version.
I tried using GDB and can locate a crash somewhere in tint2 launcher. However, makepkg always strips the debug symbols etc etc.
I can modify /etc/makepkg.conf to produce debug symbols, but they are obviously not downloadable.
Is there some way to get makepkg to produce a binary with debugging info. another part of the problem is that tint2 uses cmake and ninja to build. I am not familiar with those.
EDIT: I think this is solved by using a cmake flag -D CMAKE_BUILD_TYPE=Debug \ in the build function. I can then debug directly using the built src/build/tint2.