#40648: cmake @2.8.11.2 does not set optimization flags in release -------------------------+---------------------- Reporter: macports@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | -------------------------+---------------------- Comment (by jeremyhu@…): Replying to [comment:12 johnsonsr@…]:
Replying to [comment:11 jeremyhu@…]:
The reason that I removed that was because -O3 introduced bugs which caused some ports to compile incorrectly.
It sounds like those ports individually need to have their configurations modified to set `-D CMAKE_CXX_FLAGS_RELEASE="-O0"`. When a default autoconf variable causes a port to fail to compile, the "fix" isn't to patch the defaults in the autoconf port, is it?
The fix is to make sure that those ports build with the correct optimization flags (configure.optflags) rather than -O3. -- Ticket URL: <https://trac.macports.org/ticket/40648#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X