Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 293279

Summary: FindKDE4Internal.cmake of kdelibs sets bad values for cflags
Product: Gentoo Linux Reporter: Benjamin Schindler <beschindler>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benjamin Schindler 2009-11-15 14:33:37 UTC
On line 1016 of FindKDE4Internal.cmake, there is 

   set(CMAKE_CXX_FLAGS_DEBUG          "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")

It is an incredibly bad idea to set -O2 at debug level as it completely disables debugging (line info in gdb jump around etc)

I don't know whether this bug comes from kde or from gentoo, so I report here


Reproducible: Always
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-23 00:32:36 UTC
Since i have same values and i didnt find any seding on this we do in eclass or anywhere else i would recommend you to report it to the upstream :]

http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake?revision=1049726&view=markup

The above file shows they really have it in their trunk version of that file.

So recommendation is to go onto http://bugs.kde.org/ and fill bug there requesting their useflags update.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-23 00:37:05 UTC
damn wrong resolution