Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293279 - FindKDE4Internal.cmake of kdelibs sets bad values for cflags
Summary: FindKDE4Internal.cmake of kdelibs sets bad values for cflags
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 14:33 UTC by Benjamin Schindler
Modified: 2009-11-23 00:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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