#2193: RFE: let me specify -mcpu for all ports -------------------------------------+-------------------------------------- Reporter: joseph8s@earthlink.net | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Low | Milestone: MacPorts base enhancements Component: base | Version: Resolution: | Keywords: -------------------------------------+-------------------------------------- Comment (by mww@macports.org): You can add optimization flags already, e.g. {{{ port -d configure libgnugetopt configure.cflags="-O3 -march=nocona -ftree- vectorize" }}} to overwrite the standard ''-O2'' optimization. Of course this can screw up the resulting binaries in fantastic ways... [[BR]] Most ports honor a subset of ''configure.cflags'', ''configure.cxxflags'', ''configure.objcflags'', ''configure.fflags'', ''configure.f90flags'' and ''configure.fcflags'' -- if applicable. [[BR]] If someone wants to make those options accessible via the config files: Have a look at ''portconfigure.tcl''; it should be fairly easy; -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/2193#comment:5> MacPorts </projects/macports> Ports system for Mac OS