[50222] trunk/dports/graphics
Darren Weber
dweber at macports.org
Wed Apr 29 17:30:07 PDT 2009
On Wed, Apr 29, 2009 at 3:40 PM, Rainer Müller <raimue at macports.org> wrote:
> Darren Weber wrote:
> >
> > Oh, also vtk-devel is using a different build type,
> >
> > -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
> >
> > This is consistent with GNU distributions that use -O2 -g to provide
> > some degree of optimization and the capacity to attach to and debug
> > running processes, examine core dumps, etc.
>
> Personally, I would never use any optimization if I plan to attach a
> debugger to it later. It may be hard to follow steps in optimized code.
>
> By default ports are built using -O2, as defined in configure.optflags.
>
> Rainer
>
Does configure.optflags apply to CMAKE? I don't think so.
While I agree that debugging during software development is better without
optimization, the real compromise here is for the release version of the vtk
library to contain some debug symbols (the optimisation is a given at the
point of a stable release). I suppose a pure debug port or variant could be
used to provide the library with no optimisation and debug symbols.
However, for the most part, we should expect any release software that will
depend on the library to run better with the optimised library installed.
Take care, Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090429/73fd086e/attachment.html>
More information about the macports-dev
mailing list