Question about cmake debug libs (and Gentoo USE=splitdebug)

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
Daniel Santos
Space Floater
Posts: 30
Joined: Sun Nov 15, 2009 8:15 am

Question about cmake debug libs (and Gentoo USE=splitdebug)

#1 Post by Daniel Santos »

Hello,

I've noticed that cmake attempts to locate debug libraries, but is mistaken. In my case, all of my libs are built debug, but then split, with the debug sections compressed and installed into /usr/lib/debug. So, for instance, /usr/lib64/libboost_iostreams.so.1.72.0 is stripped of debug information and /usr/lib/debug/usr/lib64/libboost_iostreams.so.1.72.0.debug is unstripped. (OMG! Until I just looked, I had thought that everything in /usr/lib/debug was stripped of .text and.rodata, etc. sections!)

However, the status lib /usr/lib64/libboost_iostreams.a is unstripped.

BTW, what does the build do with the debug libs? Is it maybe looking for libs built with assertions and other checks enabled? Thanks!

Post Reply