#41203: gmt5 update to 5.1.0 and related packages -------------------------------------------+------------------------------- Reporter: florian@… | Owner: macports- Type: submission | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Resolution: | Version: 2.2.1 Port: gmt5, gshhg-gmt-nc4, dcw-gmt | Keywords: haspatch | maintainer -------------------------------------------+------------------------------- Comment (by florian@…): All right, it seems the issues above were resolved in r112944 (see #41142 and #40648). What remains is that CMake's default release flags are `-O3 -DNDEBUG` and not `-Os -DNDEBUG`. Also, CMake's debug flags do not include optimization at all. With the cmake portgroup we get `-Os` which is not helpful. I work around this with: {{{ if {[variant_isset debug]} { configure.optflags -O0 } else { configure.optflags -O3 } }}} Modified Portfile patch attached (attachment:Portfile-gmt5-v2.diff). -- Ticket URL: <https://trac.macports.org/ticket/41203#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X