On Wed, Apr 29, 2009 at 3:40 PM, Rainer Müller <[email protected]> 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
_______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
