#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 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? -- Ticket URL: <https://trac.macports.org/ticket/40648#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X