On Thu, 14 Feb 08 09:31, Peter Eisentraut wrote:
> Am Dienstag, 12. Februar 2008 schrieb Armin Berres:
> > On Tue, 12 Feb 08 12:28, Peter Eisentraut wrote:
> > > | DEB_CMAKE_EXTRA_FLAGS += \
> > > |                     -DCMAKE_BUILD_TYPE=Debian \
> > >
> > > I don't see "Debian" documented as a valid value for this variable.  What
> > > is this supposed to do?  Should this be in the cmake class?
> >
> > It is defined in this patch:
> > <http://svn.debian.org/wsvn/pkg-kde/branches/kde4/packages/kdelibs/debian/p
> >atches/08_add_debian_build_type.diff> Does every KDE 4 app use
> > FindKDE4Internal.cmake? If yes it should be in the class, otherwise it
> > shouldn't.
> 
> It seems to me that a much less roundabout way to accomplish that would be to 
> just add -DNDEBUG to CPPFLAGS in the debian/rules file.  I'll see whether 
> that is a viable alternative.

The Debian build type does one more thing apart from -DNDEBUG: It
removes some compiler flags. Using RELWITHDEBINFO we would always end up
with "-O2 -g" + the flags specified via command line. This means when
you build with noopt, you'll still build with -02.

/Armin

-- 
http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-talk

Reply via email to