[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: More Memory Leak Madness... (Fedora 12/KDE SVN) (WORKAROUND!)
From: "Steven P. Ulrick" <lists-kdedevel () afolkey2 ! net>
Date: 2009-11-23 18:47:29
Message-ID: 200911231247.29619.lists-kdedevel () afolkey2 ! net
[Download RAW message or body]
> Em Segunda-feira 23 Novembro 2009, ās 15:32:53, Raphael Kubo da Costa
> escreveu:
> > On Monday 23 November 2009 10:15:40 you wrote:
> > > > On 2009-327 02:01:26 Steven P. Ulrick wrote:
> > > > > > Then, check your build type: CMAKE_CXX_FLAGS will not have any
> > > > > > effect if you are compiling in Debug or DebugFull mode, for
> > > > > > example, and set the correct CMAKE_CXX_FLAGS_<MODE> variable. You
> > > > > > may need to remove your CMakeCache.txt and re-run cmake for things
> > > > > > to work properly.
> > > > >
> > > > > Before I added export CMAKE_CXX_FLAGS=-fno-var-tracking-assignments
> > > > > to my .bashrc, I made sure that I was not compiling in any of the
> > > > > possible debug modes.
> > > >
> > > > Then maybe you're compiling on Release mode and you need to set
> > > > CMAKE_CXX_FLAGS_RELEASE (I'm not sure about this one)? And remember to
> > > > remove CMakeCache.txt between each test.
> > >
> > > I found out that if I add "ADD_DEFINITIONS( -fno-var-tracking-assignments
> > > )" to "kdepim/CMakeLists.txt" that -fno-var-tracking-assignments is
> > > successfully passed to the compiler, and also that kdepim will
> > > successfully build :) That is good news...
> > >
> > > As you know, though, adding that line to the CMakeLists.txt at the "root"
> > > of a project is not very efficient. I know enough that I should be able
> > > to export a variable and add it to my "cmakekde" function and it should
> > > be passed every time I run "cmakekde" But somehow I have been getting it
> > > wrong...
> >
> > As discussed with krop on IRC, CMAKE_CXX_FLAGS_* end up overridden by KDE
> > definitions. Try setting CXXFLAGS.
>
> -DCMAKE_CXX_FLAGS="something" -DCMAKE_BUILD_TYPE=custom
That did it! Like I said earlier, putting "ADD_DEFINITIONS( -fno-var-tracking-
assignments )" in the desired "CMakeLists.txt" did the trick, but even I could
tell that it shouldn't be that hard...
Now, I have added this:
-DCMAKE_CXX_FLAGS="-fno-var-tracking-assignments" -DCMAKE_BUILD_TYPE=custom
to the "cmakekde" function in my .bashrc
Thank you,
Steven P. Ulrick
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic